1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

capture lpt1 batch file

Discussion in 'DOS/Other' started by alexenjen, Feb 12, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. alexenjen

    alexenjen Thread Starter

    Joined:
    Aug 3, 2000
    Messages:
    526
    I need help writting .bat file to do the following:

    net use lpt1: \\server-name\printer-name
     
  2. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    You have the syntax correct. Is there a reason why you want to capture this printer port in this manner?
     
  3. alexenjen

    alexenjen Thread Starter

    Joined:
    Aug 3, 2000
    Messages:
    526
    need to use DOS based programs on Win2k OS. If I manually capture lpt1 on win2k, it does not keep it when you reboot. Or is there a better way?
     
  4. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    Use the switch /persistent at the end of the line and it should stay.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/118445

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice