Sys(2019), Sys(2023)
SYS(2019) tells you where your configuration file is located. SYS(2023) tells you where temporary files are stored.
Usage |
cConFigFile = SYS( 2019 ) cTempFileDir = SYS( 2023 ) |
Example |
WAIT WINDOW SYS(2019) && displays current config file MODI COMM SYS(2019) && edits the configuration file ? SYS(2023) && displays "C:\TEMP\TMPFILES" on Ted's machine |
SYS(2023) behaves differently in DOS and Windows in the 2.x products—DOS returns only the drive letter and a colon, whereas Windows returns the whole path. Because we doubt we'll see another DOS product, this has certainly become less of an issue. Just bear this in mind when converting DOS code to VFP. |
SYS(2023) returns the path to the temp file in DOS 8.3 notation, rather than using long filenames. For example, on Tamar's Windows 2000 machine, SYS(2023) returns "C:\DOCUME~1\TAMARE~1.GRA\LOCALS~1\TEMP". (Of course, we're not sure that's any worse than the unwieldy "C:\Documents and Settings\Tamar E. Granor\Local Settings\TEMP".) Since the Windows API function GetTempPath (on which this function undoubtedly calls) behaves the same way, we don't expect this one to get fixed any time soon. |
See Also |