home *** CD-ROM | disk | FTP | other *** search
- /*
- TEMPDIR.PRG - Function returns the name of a temporary directory.
-
- TEMPDIR() returns a path spec for storing temporary files.
- The idea behind this function is to provide an encapsulated
- reference to a directory that should be at least as fast access
- wise as the current directory. Typically, that means a RAM
- disk. It *CURRENTLY* returns the value of the DOS
- environmental variable "TEMPDIR"
-
- NOTE: This function does not guarantee exclusive use of the
- directory.
-
- SWITCHES: /n /w /m
-
- Copyright (c) 1990; The DSW Group, Ltd.
- All Rights Reserved
-
- */
- *...........................................................................
- // TempDir() -> cPathSpecForTempFiles
-
- FUNC TempDir()
- STATIC cPathSpec
- IF (cPathSpec==NIL) // Only do this the first time
- cPathSpec:= GETE("TEMPDIR") // Get the path from DOS env
- ENDIF
- RETURN(cPathSpec)
-
- *...........................................................................
- * EOF: TEMPDIR.PRG