>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.
The declaration I use:
DECLARE SHORT CopyFile IN WIN32API STRING @, STRING @, INTEGER
works fine here; I have no idea why it doesn't work on your system. I've tested it on everything except Win95.
>
>Thanks Ed.
>
>Steve