There is a command line switch /B available to indicate a binary file.
Perhaps that would allow printer setup codes through. On my system type COPY
/? to see the set of options.
.........
Copies one or more files to another location.

COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
  [/A | /B]] [/V] [/Y | /-Y]

  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line

To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).
........

Bill Cook
Kent WA USA

----- Original Message -----
From: "J.M. GRATIAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 8:27 AM
Subject: Re: Q. about RBW COPY command - Razzak's Reply


>
> Razzak :
>
>
> >>
> That's what happens when you try to by-pass normal Windows
> Printer and use the hardware LPT1 port directly from within
> R:BASE for Windows.
> If the printer is ready, then there is no problem. But, if
> the printer is NOT ready, LPT port has no way to send a
> nice "not ready' response back to R:BASE for Windows.
> If you use OUTP PRINTER command, then, everything is handled
> via Windows Print Manager and you WILL see a message if the
> printer is not ready.
> So, I would suggest the following:
> 01. SET WIDTH nnn
>     SET LINES 0
>     OUTP PRINTER
>     TYPE filename.TXT
>     OUTP SCREEN
>     SET WIDTH 79
>     SET LINES 19
> <<
>
> This don't work for me.
> Because FileName.TXT contains printer's control commands, that are
stripped
> off; even if current printer is 'Generic Text'.
>
>
> >>
> 02. If you do have to use COPY filename.TXT LPT1 command,
>     then, use the following command from within R:BASE for
>     Windows:
>     ZIP COMMAND.COM /C COPY VERSION.TXT LPT1
> <<
>
> This works (if LPT1 is changed to LPT1:), but in the horrible DOS black
box
> flash...
> Is there a way to minimize it ?
> Will Is this keep working if OS is NT/W2000 ?
>
> Thanks for your help,
>
> J.M. GRATIAS, Logimatique, France

Reply via email to