Results 1 to 5 of 5

Thread: Net use command for printing with DOS in the network

  1. #1
    Join Date
    Apr 2010
    Posts
    57

    Net use command for printing with DOS in the network

    An HP LaserJet is a Win7-Ultimate PC via USB connected to. He has been released. On another Win7-Professional computers (all 32-bit) I have over the net use command for printing from MSDOS prompt from the network printer connected successfully. A print from the command prompt can not be executed. I get the message "Edit was unable to create or access the file" LPT2. I connect to another printer with the net use command on a print server (IP address) can be printed. Any suggestions for this problem would be grateful.

  2. #2
    Join Date
    Feb 2008
    Posts
    130

    Re: Net use command for printing with DOS in the network

    I get the message "Edit was unable to create or access the file" LPT2.
    You open the Power Shell under Windows 7, then :
    1. A printer you associate with net use LPT1: \\ ip \ printer / persistent: YES
    2. A file you haws then with "Copy"

    In your case, could the job "Edit" can not be printed because surely no. "Txt" was pending.. that's why you got mentioned error.

  3. #3
    Join Date
    Feb 2009
    Posts
    72

    Re: Net use command for printing with DOS in the network

    Use the net.exe command to ascertain a persistent connection. To do this, use the subsequent syntax at a command prompt:
    net use lpt x \ \ printserver \ sharename / persistent: yes
    where x is the number of the printer port you want to allocate, printserver is the print server giving out the printer and sharename is the name of the printer share.

  4. #4
    Join Date
    Jan 2009
    Posts
    71

    Re: Net use command for printing with DOS in the network

    You will have to keep in mind that Windows XP users who are not administrators cannot map an LPT port to a path if the network printer LPT port subsists on the computer as a physical parallel port. Also I want to say that you can print directly to the printer share by using the following syntax at a command prompt:
    print / d: \\ printserver \ sharename drive: \ path \ filename

  5. #5
    Join Date
    Feb 2009
    Posts
    56

    Re: Net use command for printing with DOS in the network

    To publish a document unconstrained letter.doc from the root directory of your C drive to a shared printer as Laser1 on a print server named Pserver, follow these steps:
    1. First you should click Start and then Run.
    2. After doing that in the Open box, type cmd and click OK.
    3. Type print / d: \ \ pserver \ laser1 c: \ letter.doc and then press ENTER.

      The following note emerges on the command line:
      C: \ letter.doc is being printed
    4. To exit the command prompt, type exit and then press ENTER.

Similar Threads

  1. Dell V313w not printing on network.
    By P@poY!! in forum Hardware Peripherals
    Replies: 2
    Last Post: 06-05-2012, 10:37 AM
  2. Network Printing Very Slow
    By Ain'tSoBad in forum Windows XP Support
    Replies: 4
    Last Post: 07-12-2011, 07:46 PM
  3. Network printing with Linksys WPSM54G
    By shimani in forum Networking & Security
    Replies: 4
    Last Post: 27-04-2010, 04:54 AM
  4. Does iPad support the network printing?
    By bharti_rajpal in forum Portable Devices
    Replies: 5
    Last Post: 07-04-2010, 05:09 PM
  5. printing problem in network
    By Harding in forum Networking & Security
    Replies: 3
    Last Post: 05-01-2009, 07:48 PM

Posting Permissions

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