ChDir

Description

Changes the current directory.

Syntax

ret = ChDir (DirString)

Parameters

ret

Integer,output

 

0 = OK

 

Non zero = Error

 

 

DirString

String, input

 

Directory name of the new directory.

Remarks

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

Example

Sub ZMain()
ChDir "c:\temp"
End Sub