SIMIN Posted May 5, 2008 Posted May 5, 2008 Hi Is there any other/better way to get the windows directory rather than this method: Environ("windir") ??? Quote
MrPaul Posted May 5, 2008 Posted May 5, 2008 Environment.GetFolderPath //Get the system directory sysDir = Environment.GetFolderPath(Environment.SpecialFolder.System); //Get the Windows directory winDir = Directory.GetParent(sysDir).ToString(); Directory is a class in the System.IO namespace. Quote Never trouble another for what you can do for yourself.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.