Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1772

TEE in @EXECARRAY in a library function?

$
0
0
This works on a command line.

Code:
echo %@execarray[a,cscript //NoLogo u:\vbs\tlhelper.vbs | tee t:\execarray.tmp]

If I do this in a library function

Code:
if %@execarray[s,cscript //NoLogo %vbsfile | tee t:\tl_execarray.tmp] != 0 (echo cscript error & goto done)

I get an error.

Code:
TCC: tl [75]  Syntax error "@execarray[s,cscript"

If I escape the pipe and do this

Code:
if %@execarray[s,cscript //NoLogo %vbsfile ^| tee t:\tl_execarray.tmp] != 0 (echo cscript error & goto done)

the...

Read more

Viewing all articles
Browse latest Browse all 1772

Trending Articles