Jump to content
Sign in to follow this  
Guest Guest_Napoleon

Deleting directories in win2000

Recommended Posts

Guest Guest_Napoleon

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
Guest Guest_Napoleon

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.