c# - From VS2010 in Windows 7 using Directory.Delete(path) from the VS debugger -


from vs2010 in windows 7 using directory.delete(path) vs debugger. have full admin rights machine.

i ran

directory.delete(path) 

not did not delete folders, when try go , delete them manually get

enter image description here

no matter do, not let me delete path more. if program tries delete it, unathorizedaccessexception.

what's going on here?

edit:

i've tried deleting windows explorer , command box running administrator. don't see else there do.

run command in cmd:

attrib "myfolder" -r -a -s -h 

you may have accidentally marked folder system folder in application. try restarting computer after doing this. can right click folder , go security/permissions tab , see if (the admin) has rights folder (try marking boxes). scrambled during file operations.


Comments