Launching an EXE from an HTA? 
Author Message
 Launching an EXE from an HTA?

How is this done? Does it require WSH? Is it easy?

Thanks!

Doug Gennetten



Sat, 18 Oct 2003 12:43:40 GMT  
 Launching an EXE from an HTA?
Use the run() method of the WScript.Shell class. Yes. Yes.

e.g.
var oShell = new ActiveXObject("WScript.Shell");
oShell.run("C:\\windows\\notepad.exe");

Joe

Quote:
> How is this done? Does it require WSH? Is it easy?

> Thanks!

> Doug Gennetten



Sat, 18 Oct 2003 17:22:34 GMT  
 Launching an EXE from an HTA?
On Mon, 30 Apr 2001 22:43:40 -0600, "Douglas Gennetten"

Quote:

>How is this done? Does it require WSH? Is it easy?

' This fragment launches Notepad with the current executed script
  Set WshShell = Wscript.CreateObject("Wscript.Shell")
  WshShell.Run ("%windir%\notepad")

P.S. Is there anybody who speaks Italian?



Wed, 22 Oct 2003 21:33:20 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Launching HTA (HTML Applications)

2. launch vbs script from a hta app?

3. launch script from a hta?

4. How to launch an executable (exe) via a .vbs file

5. Button to launch exe

6. Button to launch exe

7. Access denied when I try to launch an exe file

8. launching .EXE file from ASP

9. Launching an exe errors out when spaces are in the path

10. Launching an EXE from a VBScript

11. ActiveX control to launch .exe?

 

 
Powered by phpBB® Forum Software