Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted temp files...
Message
 
À
06/02/2002 12:23:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00616127
Message ID:
00616153
Vues:
27
Do you know a way to get the temp directory from the OS?

>>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?
>
>
>lcPath = 'c:\temp\'
>lcSkeleton = '*.tmp'
>declare integer SetFileAttributes in Win32API ;
>	string @ lpFileName,  integer dwFileAttributes
>declare short DeleteFile in win32API string @ lpFileName
>lnFiles=adir(arrFiles,lcPath+lcSkeleton,'HS')
>for ix=1 to lnFiles
>  SetFileAttributes(lcPath+arrFiles[ix,1], 0)
>  DeleteFile(lcPath+arrFiles[ix,1])
>endfor
Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform