(for those of you who think it will allow u to hack into someones pc through the internet...think again. antivirus/firewalls will notify the user of the script. I just simply allow the script because its a local script made by me and I know its safe.)
I want to be able to launch this HTA program from a network share for my laptop because my laptop cannot read dvd-rw's. I was wondering if anyone knows how to do it. I have tried many different methods but have had no luck.
The posted code is a snippet from one of my many files.
BTW. the share path is //server/dvd.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<link rel="stylesheet" type="text/css" href="./common/wpi.css" />
</head>
<body class="body">
<script>
function Launchgarminmetro() { var ws = new ActiveXObject("WScript.Shell"); ws.Exec("..\\Garmin\\Canada.Metroguide-RR\\Setup.exe")}
function Launchgarminwater() { var ws = new ActiveXObject("WScript.Shell"); ws.Exec("..\\Garmin\\US.Waterways.and.Lights\\Setup.exe")}
function Launchgarminmap() { var ws = new ActiveXObject("WScript.Shell"); ws.Exec("..\\Garmin\\World.Map.v3.00\\Setup.exe")}
function Launchofficexp() { var ws = new ActiveXObject("WScript.Shell"); ws.Exec("..\\officexp\\SETUPPLS.EXE")}
function Launchcamedia() { var ws = new ActiveXObject("WScript.Shell"); ws.Exec("..\\camedia\\camedia\\SETUP.EXE")}
function Launchtrips04() { var ws = new ActiveXObject("WScript.Shell"); ws.Exec("..\\Trips04\\cd1run.exe")}
function Launchtrips04copyfiles() { var ws = new ActiveXObject("WScript.Shell"); ws.Run("..\\Trips04\\copyfiles.bat")}
</script>
<a name="checks">
<form name="WPI">
<table width="394" height="256">
<tr>
<td class="txt" valign="top" width="365" height="252">
</form>
<p><font size="3">Microsoft Office XP Professional</font></p>
<form method="POST" action="--WEBBOT-SELF--">
<input type="button" value="Install" name="B3" onclick="javascript:Launchofficexp()"></p>
</form>
<p><font size="3">Microsoft Streets & Trips 2004</font>
</p>
<form method="POST" action="--WEBBOT-SELF--">
<input type="button" value="Install" name="B3" onclick="javascript:Launchtrips04()">
<input type="submit" value="Copy Files" name="B1" onclick="javascript:Launchtrips04copyfiles()"></p>
</form>
<p><font size="3">Garmin MapSource</font>
</p>
<form method="POST" action="--WEBBOT-SELF--">
<input type="button" value="MetroGuide" name="B3" onclick="javascript:Launchgarminmetro()">
<input type="submit" value="Waterways" name="B1" onclick="javascript:Launchgarminwater()">
<input type="reset" value="World Map" name="B2" onclick="javascript:Launchgarminmap()"></p>
</form>
<p><font size="3">CaMedia Software</font>
</p>
<form method="POST" action="--WEBBOT-SELF--">
<input type="button" value="Install" name="B1" onclick="javascript:Launchcamedia()"></p>
</form>
</td>
</tr>
</form>
</table>
</body>
</html>
Any suggestions or comments would appreciated.



Help

Back to top










