Archive for May 5th, 2008

Shell command for Browser Script

A question on the Oracle discussion forum last week prompted me to dig out a MetaLink article that I’ve never noted here. The question was “How to call a local executable from the browser”: the answer is to use browser script to instantiate a Windows Scripting Host ‘Shell’ ActiveX object, like so:

var objWSH = new ActiveXObject("WScript.Shell");
objWSH.Run("notepad.exe");

More detail on using the ActiveXObject is available in the post on Client-side DLLS.

Add comment May 5th, 2008


Calendar

May 2008
M T W T F S S
« Apr   Aug »
 1234
567891011
12131415161718
19202122232425
262728293031  

Posts by Month

Posts by Category