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

Folder Creation in Windows System32 folder using C#.net

$
0
0

Hi all,

I have to create a folder under windows\system32. If folder already exists skip it, if not i have to create folder in System32.

I used below code, but it doesnt work...

 string pp = Environment.GetFolderPath(Environment.SpecialFolder.System);
            string pp1 =Path.Combine(pp, "Manifests") ;
            if (!Directory.Exists(pp1))
            {
                Directory.CreateDirectory(pp1);
            }

Any suggestion???

Thanks

Divakar


Viewing all articles
Browse latest Browse all 31927

Trending Articles



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