run batch file silently

Dear,

I've created a batch file to install the network printer but I can't run it silently even if I add -q or /quiet does not work. The command does work without the option -q

Does anyone has an idea? i would be grateful.

cscript c:\windows\system32\printing_admin_scripts\en-us\prndrvr.vbs -a -m -q "HP PCL6" -i "\\test-it\hardware\drivers\HP_PCL6.inf"

cscript c:\windows\system32\printing_admin_scripts\en-us\prnport.vbs -a -r -q "4505ci KX" -h 172.30.6.15 -o raw -n 9100

cscript c:\windows\system32\printing_admin_scripts\en-us\prnmngr.vbs -a -p -q "HP Laserjet 6600" -m "HP PCL6" -r "HP PCL6" 
exit

Thanks for your help :-)

August 20th, 2015 11:37am

Have you tried piping the output to a file?

cscript ... > fu.log

Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 11:42am

no, how do we do that, can you help? I want something simple. Really I tried anything. :-((

August 20th, 2015 11:53am

Tim already posted exactly what you need.

Additional research can be done via search engine:

https://duckduckgo.com/?q=batch+output+redirection

Side note - Tim, I like your output filename.

Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 11:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics