Thanks for replying!
I don't read where the source directory cannot be read only. To answer you
question, yes it is, but I've tried changing the read only attribute
(manually) and it didn't make a difference.
The directory doesn't already exist where I am trying to move it to. But on
that topic, I'm using the .FullName of the target DirectoryInfo, and adding
"//" + source.Name, so it ends up being "C:/TEMP2/BLUE".
Any other suggestions would be appreciated. I guess I can always copy then
delete, but I was wanting to just do a Move.
Thanks
"D. Yates" wrote:
Is your source directory read only? Does the target directory already
exists? Either will cause a failure according to the documentation.
Dave
"AE Guy" <AE***@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com... **I just realized I initially posted this in the wrong group, sorry to
those
of you who see it twice
I have a windows service written in C# that WAS moving files individually.
Now I am trying to make it move entire directories. When trying to use
the
DirectoryInfo.MoveTo() method I am getting a "access to the path is
denied"
exception. This is being developed on the local system, service is
starting
up with the local system account, and it work fine when using
FileInfo.MoveTo().
Any advice would be appreciated