SCRIPT and GetObject

As @vefatica discovered recently, it would appear that GetObject does not work well with the SCRIPT command.

This example;
Code:
Set oMath = Nothing
Set oMath = GetObject("script:e:\utils\math.wsc")
oMath.StartFSO()
oMath.Display("Test")
Set oMath = Nothing
...executed with;
Code:
SCRIPT test.vbs
causes TCC to disappear.

Joe
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  27.00.18 x64   Windows 10 [Version 10.0.18363.1256]
 
I went back to;
Code:
TCC 15.01.04 Windows XP [Version 5.1.2600]
     _x64: 0
   _admin: 1
_elevated: 0
...and my example with GetObject works.
1610551692577.png

From TCC v24 to TCC v27, it does not work.

Joe
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
Windows bug (in ntdll, which is replacing TCC's error handler which is why it exits when ntdll crashes). Since Microsoft no longer supports the APIs in question, there's no chance of getting it "fixed".

Old versions of TCC work because they're using an alternate set of APIs which are no longer supported by the Windows SDK.

SCRIPT is pretty much obsolete; Microsoft has abandoned the technology.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica SCRIPT ... TCC disappears Support 2
T How can I send a simple parameter to a script, in tc 25? Support 2
vefatica PSHELL: How pass arguments to script? Support 15
EDerH Powershell call from script Support 24
Joe Caverly .PS1 script does not work with PSHELL Support 11
MickeyF running program from script and (not) returning to script Support 12
T Fixed Echo randomly activated in script Support 4
fpefpe How to? script error Support 1
fpefpe How to? script error Support 0
vefatica @SCRIPT bug persists Support 4
D Catching the result of an evaluated script expression Support 0
Joe Caverly Non-conforming @Script Support 6
M The Matrix: a useless script ... Support 5
fpefpe How to? LUA script Support 0
T Change language in script Support 4
Steve Pitts Documentation Script errors invoking help Support 15
R How to? Launch and execute commands in tcmd.exe through MSBuild Script. Support 3
Joe Caverly @SCRIPT does not like all comments Support 2
Mordachai Help! How to set parameters for script I'm debugging?! Support 6
fpefpe How to? Script support Support 8
JohnQSmith "SCRIPT" Support 7
rconn Script kiddies on the attack Support 4
krischik Stop Script after Syntax Error. Support 6
H Ruby - Running External Ruby script crashes TCC Support 11
Joe Caverly SCRIPT Command Support 2
T Obfuscating passwords in script Support 14
Stefano Piccardi IDE.exe start toobar button fails when % in script path Support 0
lassevk exit(1) in a python script exits console, by design or bug? Support 1
R break script on syntex error Support 7
K iftp script copy deletes target files Support 17
R script problem with mapped network drive Support 1

Similar threads