Script to execute programs/links/folders from Active Desktop 
Author Message
 Script to execute programs/links/folders from Active Desktop

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>



Tue, 08 May 2001 03:00:00 GMT  
 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>



Tue, 08 May 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems running script to execute programs/links or folders from Active Desktop

2. Executing programs/links/folders from Active Desktop

3. Executing any program/links/folders from Active Desktop with a script...

4. rebooting a PC from a link on Active Desktop

5. Active Desktop Programming

6. Active Desktop Programming

7. Active Desktop Programming

8. Launch Programs from active desktop html (SAMPLE CODE)

9. Place Shortcuts in new programs folder and desktop?

10. Hiding all Icons on the Desktop and Using Active Desktop

11. Hiding all Icons on the Desktop and Using Active Desktop

12. Critique on Active Desktop script

 

 
Powered by phpBB® Forum Software