>With VS, you can also install the Visual Studio Tools. I highly recommend them. Using the Error Lookup utility:
>
>Error 2 - The system cannot find the file specified.
>
>Did you NULL terminate the file names? Use Chr(0).
>
>HTH.
Larry,
Thanks for the reply. I didn't buy VS, just VFP. Is the error lookup utitlity available another way, what is the name of the program?
Regarding error 2, I am still confused. I am trying to use the CopyFile function to send a print file to a shared network printer. If I issue the command like this:
CopyFile('c:\temp\test.prn', 'LPT1:',0)
It works fine and the file is copied to LPT1. If I then change to the following:
CopyFile('c:\temp\test.prn', '\\MyServer\MyPrinter', 0)
I then get the error number 2. I have tried both using the actual shared printer name in quotes and also the return value from the APRINTERS(aPrinters) function. In my setup, I have 2 printers defined and the network printer is the second one. So I am using aPrinters[2,1] to get the exact shared name. Thanks again for your ideas.
Kind Regards,
Mat