Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Add a File Printer port from Command Line

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 29-04-2008
Member
 
Join Date: Apr 2008
Posts: 1
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:

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.

Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 04:29 AM.