OK, when I tested here I had just run a .htm file from my desktop and it worked fine as posted.
When I tried it on a remote server it had issues.
I tested and came up with this.
<SCRIPT LANGUAGE="VBScript">
Set objShell = CreateObject("Wscript.Shell")
myfile = "notepad.exe " & chr(34) & "\\servername\inetpub\scripts\myfile.txt" & chr(34)
objShell.Run myfile
</SCRIPT>
The only difference is that you have to use a full path not a relative one. The file could be on any server, not just the web server but you have to give the full path of it and you must have rights to the folder/file in question.
I stated earlier but did not consider the implication that since this code runs clientside, the relative path on the server no longer applied and a full path would be needed just as if you were browsing to the file from your desktop.
Silly of me really since I pointed out the difference.
