Core Function GetDosPath
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> GetDosPath( <path> ) </pre> === Description === Returns a given path in DOS friendly style (shortened). === Parameters === ==== path ==== The path to convert. === Ret...") |
m (1 revision) |
Revision as of 21:41, 11 August 2014
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 );