Results 1 to 5 of 5
  1. #1
    dmes
    Guest

    Print a DOS window

    How do you print from a DOS window?

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Brantford, Ontario, Canada
    Posts
    2,391
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print a DOS window

    What type of file are you trying to print? If it's straight text, using TYPE filename.txt >LPT1: will print it. If you're printing a directory listing, DIR >LPT1: will do this.

    If you're using a network printer, the printer will need to have the LPT1: port (or similar) to it, then the above commands should work.
    Christopher Baldrey

  3. #3
    dmes
    Guest

    Re: Print a DOS window

    I am running a C program in the DOS window and want to print the output that it generates. Or perhaps, a print screen? Thanks.

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print a DOS window

    Under Windows, PrintScreen or Alt+PrintScreen copies the screen or active window to the clipboard. Go to the DOS window and do a PrintScreen or Alt+PrintScreen. Switch to Windows and start a program that will accept Bit Map pastes, like WordPad, and do a paste. Print from there.
    Legare Coleman

  5. #5
    dmes
    Guest

    Re: Print a DOS window

    Thanks! I never knew how to use that Print Screen function.
    Denise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •