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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Directory API?

Status
Not open for further replies.

redzombi19

Programmer
Jun 2, 2002
35
0
0
US
hi, does anyone know of a api call that will enable me to delete a complete directory and all sub directories and files?
any help much appriciated!
thank you!
 
FAQ184-2977.


Ali Koumaiha
TeknoSoft Inc
Farmington Hills, Michigan
 

Unfortunatly faq184-2997 was written a longtime ago and you will finfd the "How to delete a folder " Windows Scripting in faq184-4140 was was written more recently.

As for the API call to remove a directory:
Code:
DECLARE INTEGER RemoveDirectory IN kernel32;
	STRING lpPathName

lpPathName = "C:\Temp1"	
? RemoveDirectory (lpPathName)




Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike,

Too weird! When I click on the link you have provided to the same FAQ that TeknoSDS posted I get a completely different FAQ.

Slighthaze = NULL
[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 

Too weird! When I click on the link you have provided to the same FAQ that TeknoSDS posted I get a completely different FAQ.

Dave must have shuffled the FAQs again, it got moved to faq184-2977 ;-)

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top