InstallShield 2016 ยป InstallScript Language Reference
The GetDisk function extracts the disk drive designation from the fully qualified path or file name specified by szPath and returns it in svDisk.
Syntax
GetDisk ( szPath, svDisk );
Parameters
Parameter |
Description |
szPath |
Specifies a fully qualified path or file name that includes a drive designation. If a drive designation is not included, GetDisk will fail. The value passed in szPath may be a UNC path. |
svDisk |
Returns the drive designation (which includes the colon). If szPath is a UNC path, GetDisk returns the server name and shared device name in the format \\server\sharedevice. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully returned the drive designation. |
< 0 |
Indicates that the function was unable to return the drive designation. |
See Also
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |