Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: execute vbscript code inline in Perl script

by NetWallah (Canon)
on Sep 08, 2017 at 16:03 UTC ( [id://1198955]=note: print w/replies, xml ) Need Help??


in reply to Re^2: execute vbscript code inline in Perl script
in thread execute vbscript code inline in Perl script

"qx" requires a shell command.

Typically, to run vbscript (Non GUI), you would use "cscript.exe" , (with "//B" for "Batch") and then pass in a file name containing vbscript commands.

THis article claims you can do it without a vbscript file, but I do not nderstand it:
https://stackoverflow.com/questions/9074476/is-it-possible-to-embed-and-execute-vbscript-within-a-batch-file-without-using-a?noredirect=1&lq=1.

My recommendation is to use perl to create a file, then invoke via qx -> cscript.ext -> File you created.

                All power corrupts, but we need electricity.

  • Comment on Re^3: execute vbscript code inline in Perl script

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198955]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found