Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE FILE with WildCards
Message
De
05/11/1998 13:31:21
 
 
À
05/11/1998 13:17:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00154920
Message ID:
00154940
Vues:
16
>Bob ---
>
>I'm running the exact same version and my DELETE FILE says (and this is cut and paste from the help screen):
>
>FileName Specifies the file to delete. FileName can contain wildcard characters such as * and ?. For example, to delete backup files with the extension .BAK in the current directory or folder, issue DELETE FILE *.BAK.


Mine ALSO says this, but IN ADDITION it has the part that I quoted.

Federico has suggested using the ERASE command instead. They appear to me to be identical in what they do, but ERASE offers me documentation that is more consistant with what I observe.


>>Vfp 5.0a SP3
>>
>>In HELP for DELETE FILE, it says under Remarks:
>>
>>"The file you want to delete cannot be open when DELETE FILE is issued. The file name must include a path if it is on a different drive or volume, or in a different directory or folder from the default, and the file name extension must be included. The file name cannot contain wildcards."
>>
>>… but when my default is on drive C: and I issue the command "DELETE FILE D:\Temp\xxx*.*", all files in D:\Temp matching xxx*.* ARE successfully deleted. As it turns out, this is what I want to happen. I do have concerns, though, as the documentation seems to say that this capability is not supported.
>>
>>How safe am I to rely on this capability?
>>
>>Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform