Use DRIVE to change the default drive while the login script is executing.
DRIVE has the following command format:
DRIVE [drive:|*n:]
Replace drive with a local or network drive letter, or replace n with a drive number. Which one you use depends on what is being assigned within the login script.
Unless this command is in your login script, the default drive is set to the first network drive, which is often assigned to your home directory when you log in.
If you do not want the default drive to be the first network drive, map a drive in the login script to the directory you want to be the default; then use the DRIVE command to change the default drive.
Instead of specifying a drive letter, such as
F: or G:, you can use an asterisk
followed by a number n to represent the
nth network drive (for example,
3).
This allows drive letters to reorder themselves automatically
if previous drive mappings are deleted or added.
Suppose you expect to work on only one project for several days and the files for that project are located on drive S:. You can use the DRIVE command to set your default drive to S: so you will not have to change your default drive manually every time you log in.
First, make sure you have mapped drive S: to the correct directory in your login script. Then enter the following command in the login script:
DRIVE S: