>hi George
>
>thanx for the error code.
>
>if CopyFile('c:\techprov2.2\jobtkt','PRN:',0) # 0
>if CopyFile('jobtkt','PRN:',0) # 0
>
>these both generate the same error code. i don't know how much shorter i need to go with a file name. has w2k got anything to do with this??
>
John,
I don't want to "lead you down the garden path" here. I don't know if this could be a Win2K issue or not. My gut reaction, however, is no, it isn't. Having, said that, here's what I'd try.
First, since the function declaration specifies that the values are to passed by reference. I'd assign the values to variables then use the @ symbol to pass by reference. I realize that VFP does this anyway, but I believe in eliminating any possible problem.
Second, I'd either use the short path name or add double quotes to make sure the path is resolved properly.
Third, I'd use the actual port.
Note, I've never tried to copy anything to the printer port using this function, so I'm strictly guessing.
George
Ubi caritas et amor, deus ibi est