English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to delete a folder from VB 2005 .. But fileIO.rmdir() Doesnt wrk it says it cant delete as the folder is not empty , i want to force delete it! HELP???!!!!

2006-09-21 15:10:14 · 2 answers · asked by top2000no 1 in Computers & Internet Programming & Design

2 answers

The rmdir() works only on empty folders... it is working just as it is supposed to. You will first need to get all the files in the folder, loop over them and delete em using the kill command. Once you are done deleting the files, you can removing the folder using rmdir()

2006-09-21 15:58:04 · answer #1 · answered by SmartSpider 4 · 0 0

Deleting folders in VB is painful and frustrating to say the least.

Essentially you have to do what it said is the problem. A folder cannot be deleted using VB unless all the files are gone, so use the VB command to delete the files, then use rmdir to remove the directory.

2006-09-21 22:59:40 · answer #2 · answered by scous_in 2 · 0 0

fedest.com, questions and answers