Runing a DOS command from JavaScript
2 posts in topic
Flat View  Flat View

Posted By:   Israel_Za
Posted On:   Tuesday, May 15, 2001 06:24 AM

How can I run an exeutable file from JavaScript (calling the windows run command)
thank you very much !

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();

About | Sitemap | Contact