It's me again :-)
In Javascript it's perfectly possible to run a file using the Shell.
But is it also possible to perform multiple tasks but not at the same time?
So like opening the command and then send a second command that puts the good old Hello World in it. Just to make the test.
Expand|Select|Wrap|Line Numbers
- var shell=new ActiveXObject("WScript.Shell");
- function openconnection()
- {
- shell.Run("cmd /K", 1);
- }
- function command()
- {
- shell.Echo("Hello World");
- }