Re: Delete folder

Tech-Archive recommends: Speed Up your PC by fixing your registry



"frodereck" <frodereck@xxxxxxxxx> wrote in message
news:1135960271.903455.138990@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> The RmDir statement, like many of the VB built-in file handling
> functions, is not always reliable.

I guess that depends on your definition of reliable. VB's built-in file
handling is quite reliable, it just may not be forgiving if you use it
incorrectly.

> If your current directory is the
> one that you want to remove, then RmDir may not work. In such a case
> you must change your current directory using the filesytemobject, or
> better yet the API function SetCurrentDirectory.

or maybe even VB's ChDrive and/or ChDir statements

> While you are at it,
> you might as well use the RemoveDirectory API function.

No need; the VB file handling statements are quite up to the job

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

.