Discussion Locked

Batch File

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

Could someone direct me to a good website on writing batch files, my goal is to use a batch file to map all my clients drives. Or just some advice to get me started would be great.

Thanks

5 replies

by wayne r.

To creade a batch file go to a command prompt (C:\) and type . This will open the DOS editor.

To map a drive use the following syntax

net use X:\ \\server\share

where x: = required drive letter
server = Server name
share = Share name

Use a new line for each individual mapping that you require.

If you need the mapping to be permanent use the following:

net use x:\ \\server\share /PERSISTENT:YES

When saving simply name it .bat

If you want this to be done at time of logon the you can either place this in the startup folder on the client or in the user properties login script area on the server.

If you need any more info feel free to mail me.

Good luck.

Wayne.

by donalconlon

use the net use command to map to your clients drives. The syntax is net use \\servername\share name (i.e. mydesktop\c$). You can use notepad to write your batch files. Save your batch file in notepad with the .bat extension. Go to the help section in NT type net use in the index section and this will give you the full use of the net use command

This discussion is closed to new replies.