> >I have an app in Windows that creates reports using DOS-only definitions.
> This is done to allow preview using MODIFY FILE (and hence search
> capabilities not possible in a graphical preview). If the user wishes to
> print a segment of the report, I issue a RUN COPY FOX12CPI.drv+PAGERNG.asc
> LPT1 >NUL
> >
> >This has worked fine for years until the user switched to Windows NT 4.0
> >
> >Now the RUN COPY doesn't work anymore.
>
> Actually RUN COPY still works in WinNT, but you should first tell computer
> where LPT1 located. So you firstly
> RUN Net Use LPT1: \\server\printer /persistent:yes
> and now you can
> RUN COPY filename LPT1
You may also have to use the /B switch on the copy command. When
copying to a device, DOS & everything else frequently terminate at the
first EOF (chr(26)) that they see. By using /B, you specify to copy a
binary file. That is, copy everything 'til the file runs out of bytes.
--