NAnt SDK Documentation - v0.92

CygpathFunctions.GetDosPath Method 

Gets the DOS (short) form of the specified path.

[Visual Basic]
<Function(Name:="get-dos-path")>
Public Function GetDosPath( _
   ByVal path As String _
) As String
[C#]
[Function(Name="get-dos-path")]
public string GetDosPath(
   string path
);

Parameters

path
The path to convert.

Return Value

The DOS (short) form of the specified path.

Exceptions

Exception Type Condition
Win32Exception cygpath could not be started.
ArgumentException path could not be converted to a short form.

See Also

CygpathFunctions Class | NAnt.Win32.Functions Namespace