Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting a folder

Status
Not open for further replies.

shanley06

Programmer
Nov 26, 2002
101
US
I was wondering if I had a folder called "Temp data" and it contained a bunch of information, how will I go about deleting the whole folder?
 
This removes the C:\QBTMP folder and its contents:
[tt]
KillDir$ = "C:\QBTMP"
KillFiles$ = KillDir$ + "\*.*"
KILL KillFiles$
RMDIR KillDir$
[/tt]
Be careful, now....

Real men don't use Interrupt 21h.
 
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 *.*.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top