Trouble With DirectoryInfo

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have taken over a C# utility that uses the DirectoryInfo class. The
production version of the app works fine, but when I try to run it on my PC
or another server I get the message "Access to the path "C:\System Volume
Information" is denied." I have admin rights on my PC and the server.
Anybody know what's wrong?

Thanks.
 
RichL said:
Hi,

I have taken over a C# utility that uses the DirectoryInfo class. The
production version of the app works fine, but when I try to run it on my
PC
or another server I get the message "Access to the path "C:\System Volume
Information" is denied." I have admin rights on my PC and the server.
Anybody know what's wrong?

Thanks.

Even administrators have no access to "C:\System Volume Information".
Fix your code, it's broken, you should handle such exception.

Willy.
 
"System Volume Information" is a special folder for Win XP. It's actually a
part of System Restore; the tool that allows you to set points in time to
roll back your computer. The System Volume Information folder is where XP
stores these points and associated information that makes them accessible.
 
Yunus Emre ALPÖZEN said:
"System Volume Information" is a special folder for Win XP. It's actually
a part of System Restore; the tool that allows you to set points in time
to roll back your computer. The System Volume Information folder is where
XP stores these points and associated information that makes them
accessible.

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

Note that by default, this folder is accesible by Localsystem (SYSTEM) only,
an administrator can 'add' other ACE's to the DACL, just select properties -
security and go on add local users, but I don't see any need to do this.

Willy.
 
Back
Top