ChDrive

Description

Changes the current drive.

Syntax

ret = ChDrive (DriveString)

Parameters

ret

Integer,output

 

0 = OK

 

Non zero = Error

 

 

DriveString

String, input

 

The string that contains the drive letter to change to.

Remarks

This is a PASSPORT command. This command is a Visual Basic command but is not implemented by VBScript.

Example

Sub ZMain()
ChDrive "A"
End Sub