CHDIR

 

Syntax:

       Then: CHDIR directory

 

where "directory" is the name of the directory.

 

Note: Under MS-DOS, specifying a drive will also make that drive current.

Under MS-DOS, you will be left in the specified directory upon exiting filePro. Under Unix systems, you will be left in your original directory upon exit from filePro.

 

Version Ref:  4.5

Description:

Changes the current directory.

 

Examples:

Run a program from a required directory, and then return to the previous directory.

       Then: xx = GETCWD()
       Then: CHDIR "/appl/otherapp" ; system "run-app"
       Then: CHDIR xx

 

Without the CHDIR command, the following processing would work under MS-

 

DOS, but not Unix:

       Then: SYSTEM "cd \ appl\ otherapp" ; system "run-app"

 

And the following would work under Unix, but not MS-DOS:

       Then: SYSTEM "cd /appl/otherapp ; run-app"