SYS_SetDrive Function

Action

Sets the current drive.

Availability

SYS_SetDrive is supported only on Windows.

Syntax

SYS_SetDrive (sDrive)
Variable Description
sDrive The letter of the drive to switch to. STRING.

Notes

An exception is raised if sDrive does not exist.

Windows Platforms

SYS_SetDrive 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

SYS_SetDrive ("C")