CURRENTDIR property (Filesystem)
Description
Gets or sets the "Current Directory" for the PS process.
Property Value
This property is a string containing a valid operating system path.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get/Set | No | N/A | No |
Remarks
You should exercise some care when setting the current directory using this property as it may cause issues in subsequent data access operations in Basic+, due to the fact that RevEngine uses the current directory as part of the search path when loading other modules, and also in resolving relative paths. The best policy is to restore it to its original value as soon as possible if you have to change it.
This property is basically a wrapper around the GetCurrentDirectory and SetCurrentDirectory Windows API functions, so please refer to the documentation on the Microsoft website for further information.
Example
// Get the current directory CurrentDir = Get_Property( "FILESYSTEM", "CURRENTDIR" ) // Set the current directory OrigDir = Get_Property( "FILESYSTEM", "CURRENTDIR", "c:\temp" )
See Also
N/A