Right-click the HTML file you want to use to open the application. Select "Open With." Double-click the "Notepad" icon to open the HTML file in your text editor.
Create the script block in the code file. The "" tags enclose all of your Javascript code. Add the following code to your file:
Add the code to open the program. Type the following code into the script tags created in Step 2:
File="cmd.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
In this example, the Windows command line program is started.
Click the "File" menu option in Notepad and select "Save" to save the changes.
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.