Code: Select all
Set objShell = CreateObject("Wscript.Shell")
wscript.echo objShell.ExpandEnvironmentStrings("%programfiles%")
wscript.echo objShell.ExpandEnvironmentStrings("%programfiles(x86)%")
However, this is where it gets weird with TextPad 6: When I create a Tool via "Program" and select either one of those "cscript.exe" files, it returns the same results no matter what (the wrong results). It is always referencing the "cscript.exe" under SysWow64. Is this a bug or a "feature"?