Jump to content

DirRemove on network drive


Recommended Posts

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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...