Sign in to follow this  
Followers 0
federerc

DirRemove on network drive

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

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