@PERL-like functions

Mar 12, 2015
6
0
#1
I get a lot of use out of the @PERl, @REXX, @TCL, @PYTHON and similar functions in Take Command 18 and was surprised to see that there is no @VBSCRIPT -- any possibility of adding that and others for other WSH engines like @JSCRIPT and @XLNT and maybe similar functions for third-party tools such as WinBatch, LotusScript, &c and tools from the MKS Toolkit, Services for Unix and the like (e.g. @AWK, @SED, @BASH, @CSH &c) and @KIXTART, @POWERSHELL and so on?
 
#2
Here's a VBScript example;

Code:
function ppp=%@script[vbscript,Function ppp(ppk):ppp=ppk*.454:End Function:set fso=CreateObject("Scripting.FileSystemObject"):set stdout=fso.GetStandardStream(1):stdout.WriteLine ppp(%1):set fso=Nothing]
Code:
c:\users\jlc\utils>echo %@ppp[6.59]
2.99186
Look in the help file for the @SCRIPT function, and the SCRIPT command, for VBScript, and other Active Scripting Engines.

Look in the help for the @PSHELL function, and the PSHELL command, for PowerShell.

I have wrapped CSCRIPT into a library function, which I can use from TCC.

Joe
 
Last edited: