I need help creating a batch file.
I will create a file called printerlist.txt that has a list of printers and looks something like this:
I have a command line utility called ADPRINTX (http://www.jsiinc.com/SUBM/tip6000/rh6065.htm
) that is used to install remote printers from the command line.
I would like the batch file to dynamically create a list similar to below:
I would like the batch file to prompt the user asking which printer to make the default printer. Then I would like every printer in the list installed with the appropriate one being set as the default.
Here is the syntax for ADPRINTX
adprintx /c "\\server\printername" (this adds a printer)
adprintx /cd "\\server\printername" (this adds a printer and makes it the default)