Hi guys,
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.
This was something I tried but I get the error that it can't get the file
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.
Code:
var shell=new ActiveXObject("WScript.Shell");
function openconnection()
{
shell.Run("cmd /K", 1);
}
function command()
{
shell.Echo("Hello World");
}
Comment