>I am printing 500 .PDF files to a printer with adobe. It created many hidden temp files on windows\temp directory.
>
>The problem is that the files are not erased from the drive after the print.
>
>Is there an API call that will clean up the temp directory that I can call?
SHFileOperation() can perform wildcarded deletion, with folder recursion and the ability to automatically process hidden files, and the ability to bypass tghe Recycle Bin; see the Win32 API section for sample code.