I can't seem to figure out how to use Windows environment variables(i.e. %SYSTEMROOT%, %APPDATA%, etc) in file paths... For example:

VB Code:
  1. If Directory.Exists("%WINDIR%\system32") Then
  2.             MsgBox("yes")
  3.         Else
  4.             MsgBox("no")
  5.         End If

This doesn't work, how can I get this to work?