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:
If Directory.Exists("%WINDIR%\system32") Then MsgBox("yes") Else MsgBox("no") End If
This doesn't work, how can I get this to work?




Reply With Quote