This removes the C:\QBTMP folder and its contents:
[tt]
KillDir$ = "C:\QBTMP"
KillFiles$ = KillDir$ + "\*.*"
KILL KillFiles$
RMDIR KillDir$
[/tt]
Be careful, now....
Just a note.
You cant have a folder named "TEMP DATA" atleast in QB. It should atleast be "TEMP_DATA" or use the windows name i.e. with the ~ sign.
More over it would be really nice that you store files in the temp folder with the same extension so that you won't have to use *.* while erasing the contents of the folder only *.EXT . But this would be only a safe guard to keep u from erasing any useful files if you are interested in keeping the folder otherwise if you wish to erase the folder you can use *.*.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.