' Set the current drive to d. ChDrive "d" ' Set current directory on the c drive to \test. ChDir "c:\test" ' Set current directory on current drive (d) to \test. ChDir "\test" Print CurDir() ' Prints d:\test