Bug in 5.4.2 with running VBscript via Tool output
Posted: Wed Aug 17, 2011 1:02 pm
With TextPad 5.4.2 running on a Windows 7 64-bit host, if I run the following code using a tool set for "cscript.exe", it returns the results shown below...
Results:
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