SYS_GetDrive Function

Action

Returns the name of the current drive.

Syntax

sName = SYS_GetDrive ( )
Variable Description
sName The name of the drive. STRING.

Notes

SYS_GetDrive returns the name of the current drive. The string it returns is an uppercase alphabetic character without the accompanying colon (:) character.

Windows Platforms

SYS_GetDrive is executed by the Agent process, not the Silk Test Classic process. To affect the host process, use the function with the hHost notation or machine handle operator. For more information about the machine handle operator and hHost, see Machine handle operator.

Example

STRING sCurDrive
sCurDrive = SYS_GetDrive ()