I\'ve got an environment variable set that points to a specific folder (call it MYFOLDER for example). When typing in %MYFOLDER%\\SubFolder into windows explore
%MYFOLDER%\\SubFolder
Expand it first:
string path = Environment.ExpandEnvironmentVariables(value);
http://msdn.microsoft.com/en-us/library/system.environment.expandenvironmentvariables.aspx