$FUNCNAME$
  CURDIR()
$CATEGORY$
  FILE/IO,DISKUTILS
$SUMMARY$
   Return the current DOS directory
$LANG_RU$
       DOS.
$SYNTAX$
     CURDIR([<cDrivespec>]) --> cDirectory
$LANG_RU$
     CURDIR([< >]) -->   
$ARGUMENTS$
     <cDrivespec> specifies the letter of the disk drive to query.  If
     not specified, the default is the current DOS drive.
$LANG_RU$
     < > -    .  
      ,      .
$RETURNS$
     CURDIR() returns the current DOS directory of the drive specified by
     <cDrivespec> as a character string without either leading or trailing
     backslash (\) characters.

     If an error occurs, or the current directory of the specified drive is
     the root directory, CURDIR() returns a null string ("").
$LANG_RU$
     CURDIR()      ,
       < >    
          (\).

          ,    
        , CURDIR()  
      ("").
$DESCRIPTION$
     CURDIR() is an environment function that gives you the name of the
     current DOS directory, ignoring the SET DEFAULT and SET PATH settings.
$LANG_RU$
     CURDIR() -    ,    
         DOS.  SET DEFAULT  SET PATH
     .
$EXAMPLES$
       These examples illustrate various CURDIR() results:

	? CURDIR("E:")     // Result: null string--root directory
	? CURDIR("C")      // Result: dir1\dir2
	? CURDIR("C:")     // Result: dir1\dir2
	? CURDIR()         // Result: null string--root directory
	? CURDIR("A")      // Result: null string--drive not ready
$LANG_RU$
           
         CURDIR():

       ? CURDIR("E:")   // :   -  
       ? CURDIR("C")    // : dir1\dir2
       ? CURDIR("C:")   // : dir1\dir2
       ? CURDIR()       // :   -  
       ? CURDIR("A")    // :   -   
$SEEALSO$
  FILE()
$END$
