DADiSP Worksheet Functions > Function Categories > Query Functions > GETMISCPATH
Returns the path to a system directory.
GETMISCPATH(addpath, dirtype)
addpath |
- |
Optional. An integer, if 1, append the path separator character. Defaults to 1. |
||||||||||||||||||||
dirtype |
- |
Optional. An integer, the path type.
|
A string.
getmiscpath
Returns the current temporary path (with appended path separator) for miscellaneous DWK files.
getmiscpath(0, 1)
Returns a system wide temporary directory.
getmiscpath(1, 3)
Returns the path to the Windows system files including an appended path separator.
GETMISCPATH is the directory where miscellaneous files can be placed to be add or extract from a DWK file. DADiSP automatically searches this directory for menus, macros and SPL functions.
GETMISCPATH((0, 1) returns a system directory where temporary files may be placed.
GETMISPATH(0, 8) returns the startup directory on the client machine for a network version of DADiSP and the location of the DADiSP executable for all other versions (same as GETHOME).
For a path that includes the username folder, username resolves to the login name of the current user.