|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DirectoryInfo, MoveTo methodI 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. Please make sure that this directory is not used by any other application
such as command console or Explorer -- Show quoteHarish Shikhare "AE Guy" wrote: > 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. |
|||||||||||||||||||||||