![]() |
|
|
+ Search |
![]()
|
Jul 7th, 2003 03:08
Nagesh Rai, Manjunath Naik,
u can use the following javascript function to execute an exe with gui
on the client system. for this code to work as intended u need to have
activex controls enabled in the browser.
<script language="JavaScript">
function LaunchExe(strPath, strCurrentDirectory) {
var wshShell = new ActiveXObject("WScript.Shell");
if (null != strCurrentDirectory) {
wshShell.CurrentDirectory = strCurrentDirectory;
}
wshShell.Run(strPath, 1, false);
wshShell = null;
}
</script>
here:
strPath: the full path of the exe
strCurrentDirectory(optional) : is the current directory
with best regards
nagesh
http://www.cenvo.com
© 1999-2004 Synop Pty Ltd