Prev: XP Only Re Boots
Next: Missing INF File
From: John John - MVP on 11 Mar 2010 15:45 I think that the drivers need to be signed. Right click My Computer and select Properties then click on the Hardware tab and then click on the Driver Signing button and see set to "Ignore". John Keith G Hicks wrote: > How do I do this? > > I need to set up some command line scripts to install printers for > Ghostscript. I'm tired of doing it manually on every machine. For my needs I > need a local port called "C:\Program Files\gs\output\tfile.ps" Please don't > bother me with a bunch of "why"s. It's what I need for this. > > The following runs great if the port already exists. > > rundll32 printui.dll,PrintUIEntry /if /f "C:\Program > Files\gs\gs8.64\lib\ghostpdf.inf" /r "c:\Program Files\gs\output\tfile.ps" > /m "Ghostscript PDF" /b "Ghostscript PS" > > But if not, then it generates an error. I need to know how to add a new > local port. Can anyone help? > > I also need to know how to set the new printer so it prints directly to the > printer. There's a radio button for this in the new printer wizard but no > switch for it that I can see in rundll32 printui.dll,PrintUIEntry > > Thanks, > > Keith > >
From: Greg Russell on 11 Mar 2010 15:53 "Keith G Hicks" <krh(a)comcast.net> wrote in message news:%23f4a5jVwKHA.5036(a)TK2MSFTNGP02.phx.gbl... > Also, for anyone that might be interested in this in the future, > http://articles.techrepublic.com.com/5100-10878_11-5030819.html oddly enough > does not show all the switches for these functions. .... as clearly (?) stated in the article, along with instructions for finding the XP system help that shows all possible switches for the "new command tools". It's unfortunate that it insists on a TCP/IP port, as a printer "port" should be any abstract that fits the need. That limitation is consistent with M$'s general failings however. Glad the prncnfg.vbs worked for part of the issue you're dealing with, though.
From: Keith G Hicks on 11 Mar 2010 16:17 That gets rid of the problem where windows gets in there and asks if it's okay to install teh driver (which is okay by me) but it doesn't solve the port does not exist problem. "John John - MVP" <audetweld(a)nbnet.nb.ca> wrote in message news:uFrFLvVwKHA.3764(a)TK2MSFTNGP04.phx.gbl... >I think that the drivers need to be signed. Right click My Computer and >select Properties then click on the Hardware tab and then click on the >Driver Signing button and see set to "Ignore". > > John > > > Keith G Hicks wrote: >> How do I do this? >> >> I need to set up some command line scripts to install printers for >> Ghostscript. I'm tired of doing it manually on every machine. For my >> needs I need a local port called "C:\Program Files\gs\output\tfile.ps" >> Please don't bother me with a bunch of "why"s. It's what I need for this. >> >> The following runs great if the port already exists. >> >> rundll32 printui.dll,PrintUIEntry /if /f "C:\Program >> Files\gs\gs8.64\lib\ghostpdf.inf" /r "c:\Program >> Files\gs\output\tfile.ps" /m "Ghostscript PDF" /b "Ghostscript PS" >> >> But if not, then it generates an error. I need to know how to add a new >> local port. Can anyone help? >> >> I also need to know how to set the new printer so it prints directly to >> the printer. There's a radio button for this in the new printer wizard >> but no switch for it that I can see in rundll32 printui.dll,PrintUIEntry >> >> Thanks, >> >> Keith
From: John John - MVP on 11 Mar 2010 20:22 Add the port to the registry. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v "C:\Program Files\gs\output\tfile.ps" /t reg_sz You have to restart the spooler service for changes to apply: net stop spooler net start spooler John Keith G Hicks wrote: > That gets rid of the problem where windows gets in there and asks if it's > okay to install teh driver (which is okay by me) but it doesn't solve the > port does not exist problem. > > "John John - MVP" <audetweld(a)nbnet.nb.ca> wrote in message > news:uFrFLvVwKHA.3764(a)TK2MSFTNGP04.phx.gbl... >> I think that the drivers need to be signed. Right click My Computer and >> select Properties then click on the Hardware tab and then click on the >> Driver Signing button and see set to "Ignore". >> >> John >> >> >> Keith G Hicks wrote: >>> How do I do this? >>> >>> I need to set up some command line scripts to install printers for >>> Ghostscript. I'm tired of doing it manually on every machine. For my >>> needs I need a local port called "C:\Program Files\gs\output\tfile.ps" >>> Please don't bother me with a bunch of "why"s. It's what I need for this. >>> >>> The following runs great if the port already exists. >>> >>> rundll32 printui.dll,PrintUIEntry /if /f "C:\Program >>> Files\gs\gs8.64\lib\ghostpdf.inf" /r "c:\Program >>> Files\gs\output\tfile.ps" /m "Ghostscript PDF" /b "Ghostscript PS" >>> >>> But if not, then it generates an error. I need to know how to add a new >>> local port. Can anyone help? >>> >>> I also need to know how to set the new printer so it prints directly to >>> the printer. There's a radio button for this in the new printer wizard >>> but no switch for it that I can see in rundll32 printui.dll,PrintUIEntry >>> >>> Thanks, >>> >>> Keith > >
From: Keith G Hicks on 12 Mar 2010 14:43
That couldn't have been much simpler! Thank you. "John John - MVP" <audetweld(a)nbnot.nb.ca> wrote in message news:%23wUHNKYwKHA.5036(a)TK2MSFTNGP02.phx.gbl... > Add the port to the registry. > > reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v > "C:\Program Files\gs\output\tfile.ps" /t reg_sz > > You have to restart the spooler service for changes to apply: > > net stop spooler > net start spooler > > John > > > Keith G Hicks wrote: >> That gets rid of the problem where windows gets in there and asks if it's >> okay to install teh driver (which is okay by me) but it doesn't solve the >> port does not exist problem. >> >> "John John - MVP" <audetweld(a)nbnet.nb.ca> wrote in message >> news:uFrFLvVwKHA.3764(a)TK2MSFTNGP04.phx.gbl... >>> I think that the drivers need to be signed. Right click My Computer and >>> select Properties then click on the Hardware tab and then click on the >>> Driver Signing button and see set to "Ignore". >>> >>> John >>> >>> >>> Keith G Hicks wrote: >>>> How do I do this? >>>> >>>> I need to set up some command line scripts to install printers for >>>> Ghostscript. I'm tired of doing it manually on every machine. For my >>>> needs I need a local port called "C:\Program Files\gs\output\tfile.ps" >>>> Please don't bother me with a bunch of "why"s. It's what I need for >>>> this. >>>> >>>> The following runs great if the port already exists. >>>> >>>> rundll32 printui.dll,PrintUIEntry /if /f "C:\Program >>>> Files\gs\gs8.64\lib\ghostpdf.inf" /r "c:\Program >>>> Files\gs\output\tfile.ps" /m "Ghostscript PDF" /b "Ghostscript PS" >>>> >>>> But if not, then it generates an error. I need to know how to add a new >>>> local port. Can anyone help? >>>> >>>> I also need to know how to set the new printer so it prints directly to >>>> the printer. There's a radio button for this in the new printer wizard >>>> but no switch for it that I can see in rundll32 >>>> printui.dll,PrintUIEntry >>>> >>>> Thanks, >>>> >>>> Keith >> |