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

Tags: , , , , ,

Sponsored Links



Installing a LPR printer from the command line via .bat

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-01-2010
Member
 
Join Date: Jan 2010
Posts: 1
Installing a LPR printer from the command line via .bat

Hi all,

Im In the process of writting a batch file to install a networked LPR printer on on XP/Vista/7 x86 and x64 computers and Ive hit a bit of a snag.

here is what I have

@echo off
start /w ocsetup.exe Printing-Foundation-LPRPortMonitor /passive /norestart
start /w ocsetup.exe Printing-Foundation-LPDPrintService /passive /norestart
rundll32.exe printui.dllPrintUIEntry /if /o "lpr" /m"Canon iR-ADV C5035/5051 PS3" /b "JMLS Printer" /h "x86" /f "CNS3OU.INF" /r "IP_10.128.0.16" /q "jmlshold"


the first two commands execute perfectly, however I on the last command that actually installs the LPR port I either get a "Operation could not be completed, Double check that the printer is connected to the network" or "Port does not exist"

if anyone he done anything like this and could help I would greatly appreciate it

Thanks!
Reply With Quote
  #2  
Old 28-01-2010
Glenny's Avatar
Member
 
Join Date: May 2008
Posts: 4,550
Re: Installing a LPR printer from the command line via .bat

Just have a look at the following threads and you may get some solution on installing a LPR printer from the command line via .bat:
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Installing a LPR printer from the command line via .bat"
Thread Thread Starter Forum Replies Last Post
xcopy command line together with wmplayer command line Aislinn Operating Systems 5 31-03-2010 01:13 PM
PROBLEM: COMMAND LINE OPTION SYNTAX ERROR. TYPE COMMAND /? FOR HEL FORTHELOVEOFGODPLEASEHELPME MediaCenter 3 03-09-2009 06:41 PM
Command Line Ren (Rename) command broken? SixSigmaGuy Vista Help 2 18-05-2008 04:30 PM
Add a File Printer port from Command Line mandalorian2 Software Development 0 29-04-2008 09:52 PM
autorun.inf - shell\..\command with command line parameter doesn'twork kakii Windows XP Support 1 18-05-2007 02:24 AM


All times are GMT +5.5. The time now is 01:10 AM.