>You've not provided us with the return from GetLastError(), so this is a SWAG at best, but the most common errors people make are:
>
> - failing to pass a 0 as the third parameter, to tell it not to fail if the target exists
> - misspecifying the port name; the default printer port is LPT1:, not LPT or LPT1
> - naming an unassigned device; under NT/2K, there is no default device assigned to PRN:
The exact command I used was:
rv=CopyFile('I:\COMMON\LIMS\RUNLETER\RLCKLIST.PRN','LPT1:',0)
(0 is returned)
When I issued Getlasterror, I got 87 (which I think means Invalid Parameter, but I'm not sure).
Now all of a sudden, it even fails when I passit LPT2: (and that's a captured printer port). That worked before. Don't know what's went bunk.
Am I missing anything? I'm running Win98.
Thanks Ed.
Steve