Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>chdir() - change directory</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     chdir() - change directory
  Usage:    <logical> = chdir(<directory>)
  Params:   string <directory> - directory to change to
  Returns:  logical .T. if change was successful, .F. if error

 ---------------------------------- Example ---------------------------------

                 if .not. chdir("\employee\data")
                      @ 0,0 say "Could not change directory"
                 endif

                 if ! (mkdir("C:\TEMP"))
                      ? "Error creating temporary directory"
                 else
                      chdir("C:\TEMP")
                      fcopy("A:temp.txt","temp.txt")
                 endif

  Note:     This function sets ferror() if an error occurs. It
            does not change Clipper's set path to setting.


See Also: mkdir() rmdir() isdir()

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