Question Locked

bat files

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

how do you write a bat fie for a network printer?

and if you can bat. on roaming profiles as well ?

please thankx

4 replies

by animatech

Open notepad and write your network printer script.
Once that done click save as and put in xxx.bat where xxx is your file name.
This will create a bat file.
And sure you can use it in roaming profiles - login script is one example for a BAT file used in roaming profiles.

by trevor

but how do you write the logon script
i know net use x:\\server\share\name for mapping network drives but for printers and roaming profiles i need help

by dan.cox

I learned to do all this stuff in VBScript and have come to realize how much more robust VBScript is.
Check out this as a good source to learn it.

http://www.microsoft.com/technet/scriptcenter/default.mspx

You can find all sorts of example scripts to do all the things you would need. For example look at these links.

Printer:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jan05/hey0113.mspx

Map Drives:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/dec04/hey1210.mspx

http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct07/hey1012.mspx

The Microsoft Scripting Guys are a great source for VB script.

Hope this helps.
You can also google Login Scripts to get examples of those.

This discussion is closed to new replies.