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>curdir() - get the current directory name</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     curdir() - get the current directory name
  Usage:    <string> = curdir([<drive>])
  Params:   string <drive> - the drive letter to check - optional. If
            left off then the current logged drive is used.
  Returns:  string equal to the current directory name of drive
            <drive>, or null if error.

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

                 @ 10,0 say "Logged drive: " + curdrive()
                 @ 11,0 say "Logged directory: "+curdir()

                 ? curdir("C:")
                 ** prints the current directory on drive C:

                 tempdir = curdir()
                 chdir("c:\temp")
                 fcopy("a:temp.txt","temp.txt")
                 chdir(tempdir)

  Note:     Unlike the Clipper curdir(), the FUNCky curdir() will
            set ferror() if an error occurs and it will return
            a fully qualified directory name that includes the
            drive specifier.


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

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