Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete file _*.* not working
Message
From
22/10/1998 14:11:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00148653
Message ID:
00149542
Views:
26
Hi Brenda ---

CURDIR() for current directory.
FULLPATH(CURDIR()) for current disk and directory
Good 'ol CD to change it.


>>>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.
>
>Yes, it helped alot. Sometimes my "dele file _*.*" would work, and sometimes not. Unfortunately the Help Example for ADIR does some extraneous PATH code. Three hours later, I realize that ADIR does not care about PATH, only the current directory. Of course now, it makes perfect sense. But that dang Help Example went out of its way to set a path and then reset it. I am trying (not very successfully) to let go of my frustration for a wasted three hours.
>
>How can i tell what is the current directory and then reset it?
>
>Thanks - Brenda
------------------------------------------------
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
Reply
Map
View

Click here to load this message in the networking platform