Non-conforming @Script

I am using;
Code:
TCC  20.00.25 x64   Windows 7 [Version 6.1.7601]
TCC Build 25   Windows 7 Build 7601  Service Pack 1

This is a new installation, on a new system.

I cannot get the @Script function to work for me. As an example;
Code:
echo %@script[vbscript,dim objShell:set objShell=CreateObject("shell.application"):objShell.FileRun:set objShell=nothing]

does not result in anything, that is, the code does not execute.

It works fine when run as;
Code:
cscript //nologo filerun.vbs
where the contents of filerun.vbs are;
Code:
dim objShell:set objShell=CreateObject("shell.application"):objShell.FileRun:set objShell=nothing

Again, this is just an example.

None of my other @Script code works anymore.

On my previous Vista system, all of my @Script code worked.

Am I missing something simple?

Joe
 
Aug 3, 2016
376
9
Netherlands
Confirmed. Not working on Win7 x64 and Win10 x64
Output: "0"; errorlevel "0". That's all.

EDIT: Even with a bogus command like: echo %@script[vbscript,qwewqeweqwq]
 
Last edited:
Aug 3, 2016
376
9
Netherlands
My thoughts exactly :-)
That is why I also tested with 32-bit Take Command on 64-bit Windows.
This will call the SysWOW64 version of vbscriupt.dll. Same results.
 
May 20, 2008
11,535
103
Syracuse, NY, USA
I think it's just broken. Joe, your original example,
Code:
echo %@script[vbscript,dim objShell:set objShell=CreateObject("shell.application"):objShell.FileRun:set objShell=nothing]
does not work in Win7/32 with TCC v20. It does work with TCC versions 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, and with 4NT v8.
 
Vince,
I must have been using a version lower than TCC v20 on my Visita 32-bit, although I know I did have TCC v20 installed.

I just tested with the TCC RT, and got the same fail;
Code:
c:\utils>tccrt filerun.btm

TCC RT  20.00.25 x64   Windows 7 [Version 6.1.7601]
Copyright 2016 JP Software Inc.  All Rights Reserved
echo 0
0

I will patiently wait for Rex to make repairs to @Script.

Joe
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly Using TYPE with non-English text Support 22
samintz CDD to non-existent directory hangs Support 2
M How to set Path variable for non-executable file extensions in 4DOS Support 8
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
L WAD ECHO. expansion of non-existent env-vars differs from CMD.exe Support 6
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
P Run as Admin tab in non-elevated Take Command session? Support 9
gschizas Fixed Using codepage 65001 (UTF-8) breaks non-ASCII characters Support 8
jbanaszczyk Non ActiveState Python/Perl Support 4
MikeBaas V19 getting non-responsive Support 1
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
M Problem with Extended Search and non-ASCII characters in directories names Support 3
S Fixed Build 48 - Non-ASCII Character mishandling Support 3
Jay Sage How to Run Non-Elevated From Elevated TCC Support 1
E Scrolling output to single, non-scrolling line Support 13
vefatica Help from IDE fails after a non-debug run Support 5
C Non-Jpsoft question (music file formats?) Support 0
S Strange REN problem - non-English characters Support 3
nikbackm Output of non-ascii characters via pipe Support 1
vefatica SCRIPT makes TCC disappear. Support 16
Joe Caverly SCRIPT and GetObject Support 3
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
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

Similar threads