General information
Category:
Coding, syntax & commands
>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.
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only