Core Function GetDosPath
From Sputnik Wiki
GetDosPath( <path> )
Contents |
Description
Returns a given path in DOS friendly style (shortened).
Parameters
path
The path to convert.
Return Value
Success: Returns the shortened DOS friendly path.
Failure: Returns empty string.
Remarks
None
Example
$path = GetDosPath(@"C:\Program Files (x86)\DAEMON Tools Pro\DTPro.exe"); println( "DTPro.exe Path is (in DOS style): " . $path ); // Convert the path back to a full windows path $pathComplete = GetFullPath($path); println( "DTPro.exe Path is (in full): " . $pathComplete );