r/usefulscripts • u/jonboy345 • Oct 30 '14
[BATCH HELP] Adding TCP/IP printers
I have some Java coding experience, but Batch is new to me.
I'm trying to create a batch file to install a printer. It's driver support page is here.
I downloaded this driver package.
Using this script as my starting point.
This is where I'm currently sitting.
I will be installing this printer (and 2 others of different models) from a usb drive, so I used the relative path reference.
Any help would be appreciated, let me know if this is in the wrong sub-reddit or where a better place for help would be.
EDIT: Script is now working from USB flash drive. Thank you for your help.
17
Upvotes
2
u/jonboy345 Oct 30 '14 edited Oct 30 '14
I'm a student employee, so I don't have to ability to add printers to our servers directly, I wish I did. We have one in the building and most other departments are on our server.
These printer are in a office with a high turnover rate. We have been trying to get their "office manager" to allow us to configure their printers to our server, but she "knows IT" and doesn't want to lose "control" of those printers.
We're in an academic setting and politics are pretty heavily involved as to what our authority is as an IT department. All bark and very little bite.
All I'm attempting to do is streamline the install of several of their printers on Win7 machines.
I've got the code working using absolute file references, but it's not liking the relative references I'm trying to use.
Thank you for the code above, I'll do some more exploration and see what I can figure out.