In article <MP************************@nntp.lucent.com>,
ti******@NOSPAM.comcast.net enlightened us with...
>
It's an oddity with the quotes because of the space in the "Program
Files".
In VBScript, I'd do
shell.Run """C:\\Program Files\\Citrix\\ICA Client\\wfica32.exe
ciq.ica"""
I'm not sure how it goes in JScript. If you can't get it, get the space
out using DOS filename for Program Files with the tilde.
This worked for me with VBScript. If all your users have IE, VBScript is
fine.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Run Executable HTA</TITLE>
</HEAD>
<body bgcolor=#565656>
<script language="VBScript" type="text/vbscript">
set oShell = CreateObject("WScript.Shell")
oShell.run """C:\Program Files\Microsoft Office\Office\Excel.exe""",1
window.close
</script>
</BODY>
</HTML>
This worked with javascript.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Run Executable HTA</TITLE>
</HEAD>
<body bgcolor=#565656>
<script language="javascript" type="text/javascript">
var oShell = new ActiveXObject("WScript.Shell");
var prog = "C:\\Program Files\\Microsoft Office\\Office\\Excel.exe";
oShell.run ('"'+prog+'"',1);
window.close();
</script>
</BODY>
</HTML>
--
--
~kaeli~
If a book about failures doesn't sell, is it a success?
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace