- May
- 13,402
- 190
This works on a command line.
If I do this in a library function
I get an error.
If I escape the pipe and do this
the library function works as expected except that I get this in t:\.
Any ideas on getting it to work?
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 library function works as expected except that I get this in t:\.
Code:
2023-04-12 13:13 0 tl_execarray.tmp]
Any ideas on getting it to work?