GetDisk
InstallShield 2023 » 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