Hi,
I have the following code in my html file but it won't execute notepad.exe on my PC. What am I doing wrong?
If I do a message box as a test it works but the shell doesn't?
Basically I have a file link on the server that when clicked I want that file (ascii file) to be opening on my PC (client) in notepad.
<form>
<input type="button" language="VBScript" value="UltraEdit" name="cmd">
</form>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub cmd_OnClick()
dim wshShell
Set WshShell = WScript.CreateObject("WScript.Shell"
WshShell.Run "c:\windows\notepad.exe"
End Sub
-->
</SCRIPT>
I have the following code in my html file but it won't execute notepad.exe on my PC. What am I doing wrong?
If I do a message box as a test it works but the shell doesn't?
Basically I have a file link on the server that when clicked I want that file (ascii file) to be opening on my PC (client) in notepad.
<form>
<input type="button" language="VBScript" value="UltraEdit" name="cmd">
</form>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub cmd_OnClick()
dim wshShell
Set WshShell = WScript.CreateObject("WScript.Shell"
WshShell.Run "c:\windows\notepad.exe"
End Sub
-->
</SCRIPT>