Is there a default windows path for vb?

vb.net

Solution

You are looking for the System.Environment.GetFolderPath using the Environment.SpecialFolder enumeration. Or you can use System.Environment.GetEnvironmentVariable if you know the Environment Variable's name.

From last link:

Environment.CurrentDirectory = Environment.GetEnvironmentVariable("windir")

Problem

So im just wondering, in batch they have a default way of saying the original drive or folderpath like so: `%drive%` for your `C:\` drive or whatever your drive is or like `%windir%` for the windows directory. I need this to extract files into the windows folder and some people might have a `D:\` drive instead of `C:\` or `Windows.001` instead of Windows. Is there a way for this in vb 2008-2012?

Original source