Re: Runing a DOS command from JavaScript
Posted By:
Jasper_Bos
Posted On:
Tuesday, October 9, 2001 04:18 AM
What are you trying to do? Format the hard-disk from anyone that comes to your site?? LOL ;)
Re: Runing a DOS command from JavaScript
Posted By:
anthony_whalley
Posted On:
Friday, June 8, 2001 05:22 AM
You are not clear weather you are trying to perform this from a browser or not.
If you are trying this from a browser you need to point the browser to the file you are trying to execute. This will call the open/save dialog which the user selects open from location. This runs it from the browser.
If you are using windows scripting host you can use
objWshShell = WScript.CreateObject("WScript.Shell");
taskid = objWshShell.Run("c:\windows\notepad.EXE",1,0);
If your using FESI then use Runner = Runtime.getRunTime();
Runner.exec("c:\windows\notepad.EXE")