Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
You (haven't) been erased...
Message
 
 
À
31/07/2006 15:18:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01141904
Message ID:
01142096
Vues:
10
You can delete it with
lcFolder = ADDBS(...)
*--- WSH ---
loFso = CREATEOBJECT("Scripting.FileSystemObject")
loFso.DeleteFile(lcFolder + "Thumbs.db",.T.)
*--- WIN API ---
DECLARE LONG DeleteFile IN WIN32API String
IF DeleteFile( lcFolder + "Thumbs.db" ) = 0
  * Failed. Use GetLastError to get the error code
ENDIF
Check also How to change file attributes programmatically FAQ #15763

>
>I'm trying to erase the Thumbs.db created by XP when viewing images in a dialogue box with the erase *.* command, but it won't go quietly.
>Any suggestions?
>
>Luke
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform