Hi.
I need to enable my application to access the c:\users directory on vista machines.
I´m writing a profile-cleaner program and need to be able to access and delete files in the c:\users directory.
Problem is that i get Access denied even trying to print subdirectories.
Runing a command line as both elevated and not elevated and doing a dir c:\users /s is working.
Bu when i compile a console app with IO.DirectoryInfo and run it elevated or not it´s not working, access denied.
And then running rmdir /S /Q [username] is working as elevated.
How can i get my console app to access the users directories?
/bjorn
I need to enable my application to access the c:\users directory on vista machines.
I´m writing a profile-cleaner program and need to be able to access and delete files in the c:\users directory.
Problem is that i get Access denied even trying to print subdirectories.
Runing a command line as both elevated and not elevated and doing a dir c:\users /s is working.
Bu when i compile a console app with IO.DirectoryInfo and run it elevated or not it´s not working, access denied.
And then running rmdir /S /Q [username] is working as elevated.
How can i get my console app to access the users directories?
/bjorn