Sign in to follow this  
Followers 0
Guest Guest_Napoleon

Deleting directories in win2000

2 posts in this topic

I am trying to delete all files and subdirectories within a folder, but i do not want to delete the directory itself.

I tried DirRemove(), which deletes all files and subdirectories. Problem is it deletes the main directory.

FileDelete() deletes the files within the directory but does not delete the subdirectories and its files.

I need something that will delete all files within the main directory and all of its subdirectories (or at least all files within the subdirectories) without deleting the main directory.

Any help would be appreciated, thanks.

Share this post


Link to post
Share on other sites



I think i found it. im gonna try to use _DirRemoveContents()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0