Need to run video from an HTA script. Dont want to use wmplayer as it will not close down at the end of the video. Would like to use VLC but can’t make it run.
Have installed 64 bit version and inserted
;C:Program FilesVideoLANVLC
into environment variables/path
VLC runs from cmd prompt but not from HTA
wmplayer and notepad both run ok from HTA with and without arguments. This is the script, any ideas please.
<script language=”vbscript”>
Dim objShell
Set objShell = CreateObject(“WScript.Shell”)
Sub RunApp(strApp)
objShell.Run strApp, 1, True
End Sub
</script>
</HEAD>
<body>
<BUTTON onclick=”self.close()”>Exit</BUTTON>
<br><br>
<a href=”#” onClick=”RunApp(‘wmplayer’)”>wmplayer</a>
<br>
<a href=”#” onClick=”RunApp(‘notepad’)”>notepad</a>
<br>
<a href=”#” onClick=”RunApp(‘vlc’)”>VLC</a>
</body>
</html>
Thanks