Non-conforming @Script

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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
 
#3
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:
#6
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.
 
#7
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