Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete file _*.* not working
Message
From
20/10/1998 16:37:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00148653
Message ID:
00148656
Views:
23
Hi Brenda ---

>all temporary dbfs are created using sys(2015). want to delete them all at application end. first i close all. then i tried "delete file _*.*", but that did not delete the files. then tried delete file with the full path name and _*.*, again that did not work. read the help on delete file and in one place it says you can use wildcards, but in the remarks it says you can not. any know how i can delete all the _ file?
=ADIR(aTemps,"_*.DBF")
FOR i = 1 TO ALEN(aTemps,1)
   cFile=aTemps(i,1)
   DELETE FILE &cFile
ENDFOR
This might help.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform