Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jan 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question redirecting LPT1 to a different port?

    I've googled a closed thread from this site regarding capturing DOS (in my case, QBASIC) output to LPT1 so that it would redirect to a Windows printer port. There were several good suggestions, but I'm trying to jog my memory on a DOS command that changes output from one port to another--and the phrase "MOD" keeps banging around (like an old ASCII code!) in my head. Is this pinging on anyone else's cobwebs?

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Dick,

    Here's an EHow article that is pretty straight forward.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,199
    Thanks
    48
    Thanked 986 Times in 916 Posts
    I thing this is what you mean.

    cheers, Paul

    Code:
    mode /?
    Configures system devices.
    
    Serial port:       MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]
                                    [to=on|off] [xon=on|off] [odsr=on|off]
                                    [octs=on|off] [dtr=on|off|hs]
                                    [rts=on|off|hs|tg] [idsr=on|off]
    
    Device Status:     MODE [device] [/STATUS]
    
    Redirect printing: MODE LPTn[:]=COMm[:]
    
    Select code page:  MODE CON[:] CP SELECT=yyy
    
    Code page status:  MODE CON[:] CP [/STATUS]
    
    Display mode:      MODE CON[:] [COLS=c] [LINES=n]
    
    Typematic rate:    MODE CON[:] [RATE=r DELAY=d]

  4. #4
    4 Star Lounger
    Join Date
    Jan 2010
    Location
    Fort McMurray, Alberta, Canada
    Posts
    565
    Thanks
    51
    Thanked 68 Times in 66 Posts
    Mod is the cooler, hipper, younger brother of the old Mode command!


Posting Permissions

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