Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - set default to set the dos default drive and directory http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set default to      Set the DOS default drive and directory
------------------------------------------------------------------------------
 Syntax
   set default to cPath

 Arguments
   cPath is a path specification.

 Description
   The set default to command sets the DOS default drive and/or directory to
   cPath. set default to only affects the DOS drive and directory. Force
   does not keep an internal drive or directory path.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   /*
   Get the current DOS drive/directory prior to executing an external
   program. Then reestablish the drive/directory after the external program
   terminates.
   */
   
   proc Test_setdefaultto
   vardef
      char cDef
   enddef
   cDef := getdefault()
   ? cDef
   wait
   run "c:\command.com"
   set default to cDef
   ? getdefault()
   wait
   endproc

   proc main
   Test_setdefaultto()
   endproc

See Also: getdefault()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson