Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

delete a file in c:\windows\...

$
0
0

hello

i want delete a file in this path c:\windows\system32\example.dll

and i use this code:

File.SetAttributes(path, FileAttributes.Normal);
File.Delete(path);

but after run , program  send error : Accsess is denied

please Help me...


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>