Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted temp files...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00616127
Message ID:
00616430
Vues:
29
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform