Resolved: Determining the Windows folder location properly
I'm aware of Environment.SpecialFolders but the Windows folder is not available there. I've been using what seems to me to be the sloppy way of finding the Windows directory:
That doesn't seem like the right way to do it in .NET. There must be a better way. Anybody?
Also, I don't want to have to parse the system32 folder out of SpecialFolders.System so please don't suggest that![Stick out tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thanks
I'm aware of Environment.SpecialFolders but the Windows folder is not available there. I've been using what seems to me to be the sloppy way of finding the Windows directory:
VB.NET:
Environ("windir")
That doesn't seem like the right way to do it in .NET. There must be a better way. Anybody?
Also, I don't want to have to parse the system32 folder out of SpecialFolders.System so please don't suggest that
Thanks
Last edited: