Printing from DOS to network printer

Archived from groups: microsoft.public.windowsxp.print_fax (More info?)

I have been able to print to a network printer from our DOS program by
using the DOS command

NET USE LPT1: \\computer-name\printer-name /persistent:yes

Now I am running into the problem of printing to a network printer
that has an ethernet port on the printer. In <Printers> <Properties>
<Ports> all I have is "ip_10.2.150.10". There is no computer involved.
I've tried:

NET USE LPT1: \\10.2.150.10 /persistent:yes

and

NET USE LPT1: \10.2.150.10 /persistent:yes

and both result in a "System Error 66"

I assume I need something like:

NET USE LPT1: \\10.2.150.10\printer-name /persistent:yes

I am having trouble identifying the actual printer name. Any ideas how
to do this. "NET VIEW \\10.2.150.10" doesn't work. The name on the
"Printers and Faxes" screen has a lot of spaces, so I think that won't
work. Do I need to do:

NET USE LPT1: "\\10.2.150.10\Canon IR2200-300 PCL5" /persistent:yes

Is there an easy way to identify the computer-name and printer-name
inside of WinXP?

Thanks,
Jay Shilstone
3 answers Last reply
More about printing network printer
  1. Archived from groups: microsoft.public.windowsxp.print_fax (More info?)

    If your shared printer name really is Canon IR2200-300,it's too long (max 12
    characters/numbers) AND you have Spaces in it!

    Make it shorter and get rid of the spaces....how about CanonIR2200

    If it's DOS, you may have to go back to 8 characters!
    --
    Cari (MS-MVP Windows Client - Printing, Imaging & Hardware)
    www.coribright.com

    "James Shilstone" <shilstone.jay@shilstone.com> wrote in message
    news:e3t4909f1b58vcq84nnt4150ped5rf7mcn@4ax.com...
    > I have been able to print to a network printer from our DOS program by
    > using the DOS command
    >
    > NET USE LPT1: \\computer-name\printer-name /persistent:yes
    >
    > Now I am running into the problem of printing to a network printer
    > that has an ethernet port on the printer. In <Printers> <Properties>
    > <Ports> all I have is "ip_10.2.150.10". There is no computer involved.
    > I've tried:
    >
    > NET USE LPT1: \\10.2.150.10 /persistent:yes
    >
    > and
    >
    > NET USE LPT1: \10.2.150.10 /persistent:yes
    >
    > and both result in a "System Error 66"
    >
    > I assume I need something like:
    >
    > NET USE LPT1: \\10.2.150.10\printer-name /persistent:yes
    >
    > I am having trouble identifying the actual printer name. Any ideas how
    > to do this. "NET VIEW \\10.2.150.10" doesn't work. The name on the
    > "Printers and Faxes" screen has a lot of spaces, so I think that won't
    > work. Do I need to do:
    >
    > NET USE LPT1: "\\10.2.150.10\Canon IR2200-300 PCL5" /persistent:yes
    >
    > Is there an easy way to identify the computer-name and printer-name
    > inside of WinXP?
    >
    > Thanks,
    > Jay Shilstone
  2. Archived from groups: microsoft.public.windowsxp.print_fax (More info?)

    Afraid I don't know how to change it. My customer is in another state
    and I don't have access to the printer. However, I am thinking that
    what I quoted may not be the real printer name. Any idea how to find
    the real shared name?

    Thanks,
    Jay Shilstone

    On Fri, 30 Apr 2004 13:45:48 -0700, "Cari \(MS MVP\)"
    <Newsgroups1@coribright.com> wrote:

    >If your shared printer name really is Canon IR2200-300,it's too long (max 12
    >characters/numbers) AND you have Spaces in it!
    >
    >Make it shorter and get rid of the spaces....how about CanonIR2200
    >
    >If it's DOS, you may have to go back to 8 characters!
  3. Archived from groups: microsoft.public.windowsxp.print_fax (More info?)

    Tell him/her to right click on the printer icon in Printers & Faxes in the
    Control Panel, select Properties and then on the Sharing tab.
    --
    Cari (MS-MVP Windows Client - Printing, Imaging & Hardware)
    www.coribright.com

    "James Shilstone" <shilstone.jay@shilstone.com> wrote in message
    news:3vf5901q6fk9hg97umkcjq7m9rrlttmgon@4ax.com...
    > Afraid I don't know how to change it. My customer is in another state
    > and I don't have access to the printer. However, I am thinking that
    > what I quoted may not be the real printer name. Any idea how to find
    > the real shared name?
    >
    > Thanks,
    > Jay Shilstone
    >
    > On Fri, 30 Apr 2004 13:45:48 -0700, "Cari \(MS MVP\)"
    > <Newsgroups1@coribright.com> wrote:
    >
    > >If your shared printer name really is Canon IR2200-300,it's too long (max
    12
    > >characters/numbers) AND you have Spaces in it!
    > >
    > >Make it shorter and get rid of the spaces....how about CanonIR2200
    > >
    > >If it's DOS, you may have to go back to 8 characters!
    >
Ask a new question

Read More

DOS Printers Network Printer LPT1 Windows XP