federerc Posted March 20, 2009 Share Posted March 20, 2009 Hi, On a network drive I have a folder where my users copies temproary files and folders. Once a week I want to cancel the hole folder using the DirRemove function. My question is: must this folders be empty, or is the function only working on local drives. On this folder I´ve Administrator rights. Any help will be appreciate. Chris Link to comment Share on other sites More sharing options...
jvanegmond Posted March 20, 2009 Share Posted March 20, 2009 Hi, from help file on DirRemove. Second parameter is named 'recursive'. It means this: [optional] Use this flag to specify if you want to delete sub-directories too. 0 = (default) do not remove files and sub-directories 1 = remove files and subdirectories (like the DOS DelTree command) So DirRemove("C:\name\", 1) will also move files from subdirectory. It will also work on network drives. Good luck with your program. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now