InstallShield 2016 ยป InstallScript Language Reference
The GetDir function removes the drive designation from the fully qualified path or file name passed in szPath and returns the remainder of the path or file name in svDir. The path must include a drive designation. It may be a UNC path.
In the following example, the fully qualified path C:\Windows is returned in svDir as \Windows.
GetDir("C:\\Windows", svDir);
In the next example, the UNC path \\TheServer\TheSharedDevice\Programs is returned in svDir as \Programs.
GetDir("\\\\TheServer\\TheSharedDevice\\Programs", svDir);
Syntax
GetDir ( szPath, svDir );
Parameters
Parameter |
Description |
szPath |
Specifies a path that includes a drive designation. |
svDir |
Returns the path without the drive designation. If szPath is a UNC path, GetDir returns the path without the server name and shared device name. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully returned a path without a drive designation. |
< 0 |
Indicates that the function was unable to return a path without a drive designations. |
See Also
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |