in reply to execute vbscript code inline in Perl script
The simplest is probably the "qx" function, AKA backticks.
The important thing is to figure out how to get data out of the VB script.
One option is to use the exit code:
Another is to print data to STDOUT:WScript.Quit(returnValue)
In the perl script, you would get the information as $?<<8 (For exit code) or the return value of "qx".Wscript.Echo "Return-Value"
THere are sever other, more complicated options as well .. pipes, sockets, and other IPC mechanisms.
All power corrupts, but we need electricity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: execute vbscript code inline in Perl script
by slick.user (Acolyte) on Sep 08, 2017 at 15:32 UTC | |
by haukex (Archbishop) on Sep 08, 2017 at 16:53 UTC | |
by NetWallah (Canon) on Sep 08, 2017 at 16:03 UTC |