General discussion

Locked

Mapped Drives Batch File

By jpyper ·
Does anyone know what the correct syntax would be to edit a batch file to first del all the mapped drives and then connect them again. (XP logging into Server 2000 domain). The problem Im having is that when my client loggs on to his profile outside the network (succesfully establishing VPN)and tries to access his mapped drives, he gets an error saying "already in use" but has no access to the data on these drives?!? Help.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by curlergirl In reply to Mapped Drives Batch File

The command is:

net use * /d /y

Put this at the start of the login script file and it will delete all mappings. Then on the following lines put your net use drive mapping commands. That should work with Win2K and XP; note however that it will NOT work with earlier Win9x OS's.

Hope this helps!

Collapse -

by jpyper In reply to

Poster rated this answer.

Collapse -

by d'solve IT In reply to Mapped Drives Batch File

Hi,

Synergy/dlo's answer is correct but that command wil also remove the \\servername\IPC$ share.

I would recommend you to use a series of commands (one for specific share you want to delete and create). e.g.

net use //servername/sharename_1 /d /y
net use //servername/sharename_2 /d /y
....
net use //servername/sharename_1
net use //servername/sharename_2

Good luck

Collapse -

by jpyper In reply to

Poster rated this answer.

Collapse -

by jpyper In reply to Mapped Drives Batch File

This question was closed by the author

Back to Networks Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums