Bug in 5.4.2 with running VBscript via Tool output

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
ds0934
Posts: 41
Joined: Thu Nov 18, 2004 2:06 pm
Location: Virginia, USA
Contact:

Bug in 5.4.2 with running VBscript via Tool output

Post by ds0934 »

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...

Code: Select all

Set objShell = CreateObject("Wscript.Shell")

wscript.echo objShell.ExpandEnvironmentStrings("%programfiles%")
wscript.echo objShell.ExpandEnvironmentStrings("%programfiles(x86)%")
wscript.echo objShell.ExpandEnvironmentStrings("%programW6432%")
Results:
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files (x86)
C:\Program Files (x86)
C:\Program Files

Tool completed successfully
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
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?
Post Reply