Hi Tim,
You shouldn't have a problem deleting a .tmp file using this function. Some things to check are if temp1.tmp is a file or a folder, if you have full permissions to access and modify that folder, and if the file still exists and is not in use. Another thing to check is the status returned from DeleteFile. This status code will give you more hints as to why it was unsuccessful.
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
status = DeleteFile ("c:\\WINDOWS\\Temp\\temp1.tmp");
Jeremy L.
National Instruments
Jeremy L.
National Instruments