Hi everyone.
I'm working on a PHP Intranet site that is supposed to list the contents of folders on the fileserver. When the user clicks on the name of a document, theoretically it opens in the application its filetype is linked to. Unfortunately, the Win2K machines here seem to have a problem the NT4 machines don't. They prompt the user to download the file, and then it causes trouble when the user is trying to save again. Additionally, IE doesn't recognize certain document types and launch the correct application--for example, AutoCAD.
I thought I could get around this by using VBScript to execute the application instead of simply linking to the document. So I tried three or four different variations of the same three lines:
<script language="vbscript">
<!--
set Command = WScript.CreateObject("WScript.shell"
cmd = "C:\WINNT\Notepad.exe"
Command.run (cmd)
-->
</script>
Nothing happens. What am I doing wrong?
Thanks in advance,
Aciel
I'm working on a PHP Intranet site that is supposed to list the contents of folders on the fileserver. When the user clicks on the name of a document, theoretically it opens in the application its filetype is linked to. Unfortunately, the Win2K machines here seem to have a problem the NT4 machines don't. They prompt the user to download the file, and then it causes trouble when the user is trying to save again. Additionally, IE doesn't recognize certain document types and launch the correct application--for example, AutoCAD.
I thought I could get around this by using VBScript to execute the application instead of simply linking to the document. So I tried three or four different variations of the same three lines:
<script language="vbscript">
<!--
set Command = WScript.CreateObject("WScript.shell"
cmd = "C:\WINNT\Notepad.exe"
Command.run (cmd)
-->
</script>
Nothing happens. What am I doing wrong?
Thanks in advance,
Aciel