WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Opening Programs, Me, May 1, 2005
     Re:Opening Programs , Mikael Bergkvist, June 3, 2005
     Re:Opening Programs, Erik Arvidsson, May 22, 2005
         Re:Opening Programs, ME, May 26, 2005
             Re:Opening Programs, Erik Arvidsson, June 2, 2005

Subject: Re:Opening Programs From: Erik Arvidsson Date: May 22, 2005
Yes. From an HTA you can use the FileSystemObject to execute files.

function run(sPath) {
var wsh = new ActiveXObject("WScript.Shell");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f = fso.GetFile(sPath)
alert(sPath);
wsh.Run(f.ShortPath);
}

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX