code:function exec(filepath){ var Shell = new ActiveXObject("Shell.Application"); try{ Shell.Run(filepath); } catch(e) { Debug.Trace("Can't open " + filepath); } } exec("\C:\\test.exe");