Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: print command  (Read 3733 times)

0 Members and 1 Guest are viewing this topic.

carlrowley1

    Topic Starter


    Hopeful

  • liverpool fc
    print command
    « on: September 07, 2008, 10:05:12 AM »
    hello there

    this batch file named "p.bat" which contains the command "print %1"

    When i try this out at the command prompt i would type "cd batch.files" and press enter,

    c:\batch.files>p timedate.bat
    when this executes the command it would tell you
    c:\batch.files\timedate.bat is currently being printed

    There is a batch file named timedate.bat in the c:\batch.files directory
    I was wondering why this does not print out the timedate.bat file.

    these are examples from a book so things might have changed.....

    windowsXP professional sp3, Ram 512 , 1.30 gigahertz AMD Athlon, Maxtor 4r080L0 hard drive.

    Laptop Toshiba.  L300/L300D series/windows vista home premium/
    2gb ram/32 bit/

    Windows 7 / home premium / 64 bit /3gb system ram /

    Dias de verano

    • Guest
    Re: print command
    « Reply #1 on: September 07, 2008, 02:57:11 PM »
    What print device is the print command using?

    Type print /? at the prompt to see details of usage. If you do not have a DOS compatible line printer e.g. a dotmatrix device, attached to either LPT1 or COM1, then the PRINT command is no use to you.

    carlrowley1

      Topic Starter


      Hopeful

    • liverpool fc
      Re: print command
      « Reply #2 on: September 07, 2008, 04:13:32 PM »
      I take it this book i am looking at, was when everybody had a printer connected to a parallel port, as it does not mention printers.
      also it must be before usb printers came out...which i do have a usb printer

      Sorry dias i got confused again, i know you need a DOSprint utility to print from dos
      I have printed the print command out anyway for future (ref)

      thank you for your reply
      windowsXP professional sp3, Ram 512 , 1.30 gigahertz AMD Athlon, Maxtor 4r080L0 hard drive.

      Laptop Toshiba.  L300/L300D series/windows vista home premium/
      2gb ram/32 bit/

      Windows 7 / home premium / 64 bit /3gb system ram /

      GuruGary



        Adviser
        Re: print command
        « Reply #3 on: September 07, 2008, 06:57:38 PM »
        There is a trick that I use that will usually work to print to USB printers through a command prompt.  Share the printer, then map the printer to an LPT port.  So if you have a printer hooked up to your USB port, and you share it as "printer1", then you can try:
        Code: [Select]
        net use LPT1 \\localhost\printer1Then your p.bat will probably work (assuming your printer supports network printing and plain text).

        carlrowley1

          Topic Starter


          Hopeful

        • liverpool fc
          Re: print command
          « Reply #4 on: September 08, 2008, 02:01:10 AM »
          Quote
          There is a trick that I use that will usually work to print to USB printers through a command prompt.  Share the printer, then map the printer to an LPT port.  So if you have a printer hooked up to your USB port, and you share it as "printer1", then you can try:

          Code:
          net use LPT1 \\localhost\printer1
          Then your p.bat will probably work (assuming your printer supports network printing and plain text).
           
           

          Thanks for that i will have a look at that and try it out.
           
          windowsXP professional sp3, Ram 512 , 1.30 gigahertz AMD Athlon, Maxtor 4r080L0 hard drive.

          Laptop Toshiba.  L300/L300D series/windows vista home premium/
          2gb ram/32 bit/

          Windows 7 / home premium / 64 bit /3gb system ram /