|
| ||||||||||
| Tags: add printer, batch file, file printer, script, virtual printer |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Add a File Printer port from Command Line
c: cd windows cd system32 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" cd \ 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. |
![]() |
|
| 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 |
| 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 |
| Software to break a PDF file from the command line | AmdUser | Windows Software | 2 | 05-05-2009 02:48 PM |
| .inf file will not run from the command line | CHRITOPHER | Windows XP Support | 2 | 31-08-2007 01:53 AM |