Hi Ed.
I've implemented a wrapper for the COPYFILE command. (See attached.)
Unfortunately I have not succeeded in writing to a network printer with it.
It seems to work reliably with the local printer.
With LPT1: redirected using the CAPTURE command, I don't get any printer output when I copy to LPT1:
? C0PYF_RS('TESTFILE.TXT','LPT1:',0)
COPYFILE returns '3' in this case.
If I go to DOS and issue the command DIR >PRN I do get output on the network printer. (A dotmatrix ALPS printer).
If I use OpenF('PRN') I can print the same characters to the network printer.
I've also tried COPYF_RS with a network printer specified without success.
What is the best way to find out the \\Server\Printer share name?
Seems unlikely that I implemented the DLL call incorrectly (because it works fine with a local printer both dot-matrix and laser.) But perhaps you will spot something if you have time to review my code.
TIA
Peter
[see separate message for code]
Peter Robinson ** Rodes Design ** Virginia