![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to run a command line program from within my Javascript. This is a standalone script not running in a browser. This is also running on Windows. I have tried using the WshShell.AppActivate method and the WshShell.Exec method. I am able to run a command line program with either of those, but am not able to pass in parameters so it is essentially useless. Can someone tell me how I can do this? An example as simple as how to run something like "ping -t google.com" would be great. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Your answer does not seem to apply here. |
|
I am not talking about a web application. This is a windows shell script built in JavaScript. It is a script designed to handle large volumes of file parsing and distribution. This script has no interactivity with a browser or with users. It silently runs as a batch utility. |
#5
| |||
| |||
|
|
wrote on 04 okt 2005 in comp.lang.javascript: Your answer does not seem to apply here. Please always quote on usenet. This is not email. I am not talking about a web application. This is a windows shell script built in JavaScript. It is a script designed to handle large volumes of file parsing and distribution. This script has no interactivity with a browser or with users. It silently runs as a batch utility. Try: function runMe(myPath) { var myShell = new ActiveXObject("WScript.Shell"); myShell.Run(myPath, 1, true); } -- Evertjan. The Netherlands. (Replace all crosses with dots in my emailaddress) |
![]() |
| Thread Tools | |
| Display Modes | |
| |