Code: Select all
Set objShell = CreateObject("Wscript.Shell")
wscript.echo objShell.ExpandEnvironmentStrings("%programfiles%")
wscript.echo objShell.ExpandEnvironmentStrings("%programfiles(x86)%")
wscript.echo objShell.ExpandEnvironmentStrings("%programW6432%")
Which is incorrect. If I run the same code outside of TextPad, it returns the following results...Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)
C:\Program Files (x86)
C:\Program Files
Tool completed successfully
Is this a bug or is there a setting I need to check that will correct this behavior?Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files
C:\Program Files (x86)
C:\Program Files
Tool completed successfully