am experimenting with some JS
we can make the JS execute some DOS command
but i wanna know how to capture the results
as for example if the script executed a "dir" command
how can i capture the results ?
cmd with JS
cmd with JS
There is an UNEQUAL amount of good and bad in most things, the trick is to work out the ratio and act accordingly. "The Jester"
leetnigga wrote:How are you executing the command in the first place?
Code: Select all
new ActiveXObject('WScript.Shell').exec('C:\\Windows\\system32\\shutdown.exe -s -t 60');
There is an UNEQUAL amount of good and bad in most things, the trick is to work out the ratio and act accordingly. "The Jester"