notepad prints but print command does not

G

Guest

Guest
Archived from groups: microsoft.public.win2000.setup (More info?)

I have and XP SP2 system with a IBM 4019 Laser Printer.

The printer works with notepad but does not with a command line print
command. It transfers the data to the printer but does not print it.
For example:
c:\>notepad autoexec.bat

c:\>print autoexec.bat
C:\autoexec.bat is currently being printed

The above code printed okay when I printed with the default printer in
notepad. However, the above print command did not print anything. The
printers buffer light flashed as it received data but it did not print.

What have I done wrong?
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.setup (More info?)

"Dave Hurrell" <GreatOne@greatchiro.com> wrote in message
news:ePDUKCk8EHA.1400@TK2MSFTNGP11.phx.gbl...
> I have and XP SP2 system with a IBM 4019 Laser Printer.
>
> The printer works with notepad but does not with a command line print
> command. It transfers the data to the printer but does not print it.
> For example:
> c:\>notepad autoexec.bat
>
> c:\>print autoexec.bat
> C:\autoexec.bat is currently being printed
>
> The above code printed okay when I printed with the default printer in
> notepad. However, the above print command did not print anything. The
> printers buffer light flashed as it received data but it did not print.
>
> What have I done wrong?
>

Try this instead:

copy c:\autoexec.bat lpt1:
echo ^L > lpt1:

By the way, why do you have a file called "autoexec.bat"? It
is not really used by Win2000!
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.setup (More info?)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Pegasus (MVP) wrote:<br>
<blockquote cite="miduSFHEJk8EHA.3416@TK2MSFTNGP09.phx.gbl" type="cite">
<pre wrap="">"Dave Hurrell" <a class="moz-txt-link-rfc2396E" href="mailto:GreatOne@greatchiro.com"><GreatOne@greatchiro.com></a> wrote in message
<a class="moz-txt-link-freetext" href="news:ePDUKCk8EHA.1400@TK2MSFTNGP11.phx.gbl">news:ePDUKCk8EHA.1400@TK2MSFTNGP11.phx.gbl</a>...
</pre>
<blockquote type="cite">
<pre wrap="">I have and XP SP2 system with a IBM 4019 Laser Printer.

The printer works with notepad but does not with a command line print
command. It transfers the data to the printer but does not print it.
For example:
c:\>notepad autoexec.bat

c:\>print autoexec.bat
C:\autoexec.bat is currently being printed

The above code printed okay when I printed with the default printer in
notepad. However, the above print command did not print anything. The
printers buffer light flashed as it received data but it did not print.

What have I done wrong?</pre>
</blockquote>
<pre wrap=""><!---->Try this instead:

copy c:\autoexec.bat lpt1:
echo ^L > lpt1:

By the way, why do you have a file called "autoexec.bat"? It
is not really used by Win2000!</pre>
</blockquote>
Good idea.  It did not work but the general idea allowed me to fix the
problem.  The printer can print in postscript, PCL, PPDS or Plotter
modes. I had set it to postscript as the default. I simply changed the
printer to default to PPDS and changed XP's default to PPDS and it
worked.<br>
<br>
Autoexec.bat was simply conveniently there because some installer had
put it there to set and environment variable.  It appears to me that XP
actually runs it <br>
</body>
</html>
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.setup (More info?)

"Pegasus \(MVP\)" <I.can@fly.com> wrote:
> By the way, why do you have a file called "autoexec.bat"? It
> is not really used by Win2000!

One possible reason: a dual-boot system with Win2000 and DOS. Win2000
*does* use part of autoexec.bat if the relevant registry key is set to
allow it. The content of the PATH variable will be appended to the string
constructed from the Windows system and user path variables, and any SET
statements are processed.

--
Gary L. Smith gls432@yahoo.com
Columbus, Ohio
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.setup (More info?)

"Gary Smith" <bitbucket@example.com> wrote in message
news:ejfiebv8EHA.2600@TK2MSFTNGP09.phx.gbl...
> "Pegasus \(MVP\)" <I.can@fly.com> wrote:
> > By the way, why do you have a file called "autoexec.bat"? It
> > is not really used by Win2000!
>
> One possible reason: a dual-boot system with Win2000 and DOS. Win2000
> *does* use part of autoexec.bat if the relevant registry key is set to
> allow it. The content of the PATH variable will be appended to the string
> constructed from the Windows system and user path variables, and any SET
> statements are processed.
>
> --
> Gary L. Smith gls432@yahoo.com
> Columbus, Ohio

Yes, that's why I wrote "does not really". I don't actually like
this feature all that much, and I usually disable it.