Discussion Locked

Mapping a drive

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I'm trying to map a drive in dos on a win98 machine.An example of the command I'm using is c:>net use q:\\(server_name)\(directory_name)... The error that I get is as follows: "the specified drive letter or device is invalid.If you specified adrive letter check the last drive command in the config.sys file to make sure the drive letter is included..I know I could map this from My computer or explorer, But I'm trying to write a batch file. Any help would be appreciated. Thank's in advance

3 replies

by david.planchon

also if You try at the command prompt
net use /?
that should give You the short summary on how to syntax the command properly.
also in Your thread You wrote: "net use q:\\(server_name)\(directory_name)"
You need a space between q: and the doubleback-slash.

by george_neo

Hi,
I supposed DOS is slightly different from Windows. You need to go your text editor (Notepad) to edit the file config.sys. Just add a line like this:
Lastdrive=z
Save the file & reboot the PC.

This discussion is closed to new replies.