Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleted temp files...
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00616127
Message ID:
00616430
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform