FUNCTION CopyFileToDevicePRN LPARAMETER cFileToPrint DECLARE SHORT CopyFile IN Win32API ; STRING cFileToCopy, ; STRING cTargetFile, ; SHORT nFailIfExists RETURN CopyFile(cFileToPrint,'PRN',0) = 1 * If no device PRN has been defined to the OS, it ain't goinna work IF CopyFileToDevicePRN('MyPrintFile') * The file will be copied to the target device and VFP will not wait on completion ELSE * The copy operation failed to be started ENDIFThe CopyFileToDevicePRN() function should really be made more robust, since if API call CopyFile() returns a 0, you really need to invoke the API call GetLastError() to get the real return status. But it's a starting place...