GhostScript print to network printer in silent mode











up vote
2
down vote

favorite












I'm trying to print PDF from command line to network printer in silenta mode.

Unfortunately, Ghost Script opens Windows printer dialog.



I use Windows 2008 R2 Server.



My command is:



gswin64c.exe -dBATCH -dNOPAUSE -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="%printer%MEasyCoder PC4 (203 dpi) on aino1" "pdf.pdf"



Printer name is: MEasyCoder PC4 (203 dpi) on aino1 and it is network printer attached to AINO1 computer.



Printer dialog looks like:



Windows printer dialog



In printer panel it looks like: Printer control panel



What is the right command line to avoid this dialog and print silently?










share|improve this question


























    up vote
    2
    down vote

    favorite












    I'm trying to print PDF from command line to network printer in silenta mode.

    Unfortunately, Ghost Script opens Windows printer dialog.



    I use Windows 2008 R2 Server.



    My command is:



    gswin64c.exe -dBATCH -dNOPAUSE -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="%printer%MEasyCoder PC4 (203 dpi) on aino1" "pdf.pdf"



    Printer name is: MEasyCoder PC4 (203 dpi) on aino1 and it is network printer attached to AINO1 computer.



    Printer dialog looks like:



    Windows printer dialog



    In printer panel it looks like: Printer control panel



    What is the right command line to avoid this dialog and print silently?










    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I'm trying to print PDF from command line to network printer in silenta mode.

      Unfortunately, Ghost Script opens Windows printer dialog.



      I use Windows 2008 R2 Server.



      My command is:



      gswin64c.exe -dBATCH -dNOPAUSE -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="%printer%MEasyCoder PC4 (203 dpi) on aino1" "pdf.pdf"



      Printer name is: MEasyCoder PC4 (203 dpi) on aino1 and it is network printer attached to AINO1 computer.



      Printer dialog looks like:



      Windows printer dialog



      In printer panel it looks like: Printer control panel



      What is the right command line to avoid this dialog and print silently?










      share|improve this question













      I'm trying to print PDF from command line to network printer in silenta mode.

      Unfortunately, Ghost Script opens Windows printer dialog.



      I use Windows 2008 R2 Server.



      My command is:



      gswin64c.exe -dBATCH -dNOPAUSE -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="%printer%MEasyCoder PC4 (203 dpi) on aino1" "pdf.pdf"



      Printer name is: MEasyCoder PC4 (203 dpi) on aino1 and it is network printer attached to AINO1 computer.



      Printer dialog looks like:



      Windows printer dialog



      In printer panel it looks like: Printer control panel



      What is the right command line to avoid this dialog and print silently?







      pdf printer ghostscript






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 27 '15 at 7:49









      Lari13

      11113




      11113






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          0
          down vote













          The correct way to print to a network printer in silent mode using GhostScript (gswin32c.exe) is to use \spool and then the full UNC path on sOutput. All parameters are case senitive. Also, be sure to include double quotes.



          gswin32c.exe  -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="\spool\SRV-SBS01iR-ADVC5030_PS_BW" "C:WindowsTemp~Packlist.pdf"





          share|improve this answer




























            up vote
            0
            down vote













            I use gsprint, which uses GhostScript. For your example:



            gsprint -printer "\ain01MEasyCoder PC4 (203 dpi)" -dPDFFitPage "pdf.pdf"






            share|improve this answer




























              up vote
              -2
              down vote













              You have to use



              %printer%ainoMEasyCoder...






              share|improve this answer





















              • Can you expand on this? Use it where? And how?
                – Moses
                Oct 30 '15 at 21:26











              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f906575%2fghostscript-print-to-network-printer-in-silent-mode%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              0
              down vote













              The correct way to print to a network printer in silent mode using GhostScript (gswin32c.exe) is to use \spool and then the full UNC path on sOutput. All parameters are case senitive. Also, be sure to include double quotes.



              gswin32c.exe  -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="\spool\SRV-SBS01iR-ADVC5030_PS_BW" "C:WindowsTemp~Packlist.pdf"





              share|improve this answer

























                up vote
                0
                down vote













                The correct way to print to a network printer in silent mode using GhostScript (gswin32c.exe) is to use \spool and then the full UNC path on sOutput. All parameters are case senitive. Also, be sure to include double quotes.



                gswin32c.exe  -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="\spool\SRV-SBS01iR-ADVC5030_PS_BW" "C:WindowsTemp~Packlist.pdf"





                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The correct way to print to a network printer in silent mode using GhostScript (gswin32c.exe) is to use \spool and then the full UNC path on sOutput. All parameters are case senitive. Also, be sure to include double quotes.



                  gswin32c.exe  -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="\spool\SRV-SBS01iR-ADVC5030_PS_BW" "C:WindowsTemp~Packlist.pdf"





                  share|improve this answer












                  The correct way to print to a network printer in silent mode using GhostScript (gswin32c.exe) is to use \spool and then the full UNC path on sOutput. All parameters are case senitive. Also, be sure to include double quotes.



                  gswin32c.exe  -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile="\spool\SRV-SBS01iR-ADVC5030_PS_BW" "C:WindowsTemp~Packlist.pdf"






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 13 '16 at 8:19









                  Jan H

                  1




                  1
























                      up vote
                      0
                      down vote













                      I use gsprint, which uses GhostScript. For your example:



                      gsprint -printer "\ain01MEasyCoder PC4 (203 dpi)" -dPDFFitPage "pdf.pdf"






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        I use gsprint, which uses GhostScript. For your example:



                        gsprint -printer "\ain01MEasyCoder PC4 (203 dpi)" -dPDFFitPage "pdf.pdf"






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I use gsprint, which uses GhostScript. For your example:



                          gsprint -printer "\ain01MEasyCoder PC4 (203 dpi)" -dPDFFitPage "pdf.pdf"






                          share|improve this answer












                          I use gsprint, which uses GhostScript. For your example:



                          gsprint -printer "\ain01MEasyCoder PC4 (203 dpi)" -dPDFFitPage "pdf.pdf"







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 27 '17 at 16:19









                          Bobort

                          120215




                          120215






















                              up vote
                              -2
                              down vote













                              You have to use



                              %printer%ainoMEasyCoder...






                              share|improve this answer





















                              • Can you expand on this? Use it where? And how?
                                – Moses
                                Oct 30 '15 at 21:26















                              up vote
                              -2
                              down vote













                              You have to use



                              %printer%ainoMEasyCoder...






                              share|improve this answer





















                              • Can you expand on this? Use it where? And how?
                                – Moses
                                Oct 30 '15 at 21:26













                              up vote
                              -2
                              down vote










                              up vote
                              -2
                              down vote









                              You have to use



                              %printer%ainoMEasyCoder...






                              share|improve this answer












                              You have to use



                              %printer%ainoMEasyCoder...







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 30 '15 at 8:47









                              Markus Mohr

                              1




                              1












                              • Can you expand on this? Use it where? And how?
                                – Moses
                                Oct 30 '15 at 21:26


















                              • Can you expand on this? Use it where? And how?
                                – Moses
                                Oct 30 '15 at 21:26
















                              Can you expand on this? Use it where? And how?
                              – Moses
                              Oct 30 '15 at 21:26




                              Can you expand on this? Use it where? And how?
                              – Moses
                              Oct 30 '15 at 21:26


















                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f906575%2fghostscript-print-to-network-printer-in-silent-mode%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Aardman Animations

                              Are they similar matrix

                              “minimization” problem in Euclidean space related to orthonormal basis