Add a File Printer port from Command Line
I am trying to write a batch file which will add a new file printer my batch file is as follows:
cscript prnport.vbs -a -r "C:\TEMP\TiffImporterPrinter\TiffTemp.prn"
cscript prnmngr.vbs -a -p "TiffImporter (Word)" -m "HP LaserJet 5000 Series PCL" -r "C:\TEMP\TiffImporterPrinter\TiffTemp.prn"
the problem lies in the prnport line I get the error message:
Unable to parse command line. Error 0x1A8 Object required
the prnmngr line works fine if I create the port in the add printer wizard beforehand but of course fails if the port doesn't exist.
|Tags: add printer, batch file, file printer, script, virtual printer|
|Thread Tools||Search this Thread|
|Similar Threads for: "Add a File Printer port from Command Line"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to Turn File Sharing On/Off via command line?||Obessed||Networking & Security||3||10-11-2010 01:40 AM|
|How to create a .ISO File and burn a CD, via command-line||Dubeyji||Windows Software||6||15-09-2010 06:00 AM|
|Create torrent-file via command line||GurdeepS||Technology & Internet||8||23-06-2010 06:52 AM|
|Installing a LPR printer from the command line via .bat||jfriedl||Operating Systems||1||28-01-2010 04:04 AM|
|.inf file will not run from the command line||CHRITOPHER||Windows XP Support||2||31-08-2007 01:53 AM|