Core Function GetDosPath

From Sputnik Wiki
Revision as of 12:37, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox