Core Function GetDosPath

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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)
 
(One intermediate revision by one user not shown)

Latest revision as of 12:37, 14 June 2015

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