
Script to execute programs/links/folders from Active Desktop
OK No more problems,
I had to reinstall WSH even with win98 !?!
Jack-ric a crit dans le message ...
The following script works fine for a HTML page opened with IE4 and win98. If you click on the image, the program (which is MS Fax Send TO program) opens. It worked with any programs, link and even folders I have put there. So just replace the complete path of whatever program/link/folder and give also the path for whatever image you would like to see (including animated GIF).
BUT, if I open the same page on Active Desktop, I have nothing happening. Do you have any ideas on that ?
Thanks
<body>
<script language="VBScript">
sub ADExec
Dim WshShell
Set WshShell = CreateObject("WScript.shell")
WshShell.Run("c:\windows\system\awsnto32.exe")
end sub
</script>
<a><img src="file:///c:/faxnew.jpg" width="120" height="131" onclick="ADExec"></a>
</body>