Computing.Net > Forums > Programming > How to create a batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to create a batch file

Reply to Message Icon

Name: lwhh
Date: August 21, 2008 at 01:28:27 Pacific
OS: XP and 2000
CPU/Ram: Variable
Product: Dell
Comment:

Hi,
Just wondered if it was possible to create batch file which would look at all of the computers and their attached printers and do something similar to...
if printer is on server 1, remove printer and add server 2 printer
is it possible?
unfortunately, collectively as a department we have had no experience with writing batch files
thanks




Sponsored Link
Ads by Google

Response Number 1
Name: mr_bigmouth_502
Date: August 21, 2008 at 02:19:46 Pacific
Reply:

If you know what the commands are, type them into notepad, then save the file with the extension ".bat" instead of ".txt".


0

Response Number 2
Name: lwhh
Date: August 21, 2008 at 02:24:19 Pacific
Reply:

unfortunately, i do not know the commands, it would have to be something like.
if printer \\server1\zprinter exists remove it and add \\server2\printerz
is there a code for that


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to create a batch file

how to create a batch 837 file www.computing.net/answers/programming/how-to-create-a-batch-837-file/15547.html

How to run a batch file on another www.computing.net/answers/programming/how-to-run-a-batch-file-on-another-/15653.html

How to create a text file using FSO www.computing.net/answers/programming/how-to-create-a-text-file-using-fso/10319.html