I'd like to execute vbscript code from java
I understand that the following code executes a vbs file.
Runtime.getRuntime().exec("wscript test.vbs");
But what I need is to execute the code inside vbs file itself from java instead of having the vbs file saved in the system. In my environment I am not allowed to save vbs files in system.
I am looking for something like
Runtime.getRuntime().exec("wscript 'vbscript code itself'");