Jump to content

Recommended Posts

Posted

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

Posted

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.

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
×
×
  • Create New...