Well, I just tried opening this file on my client PC and its works OK.
I want to be able to click a link in a page from my PC (client) that resides on the webserver. It only works if the file is sitting on my (client) pc.
Here it is.
<html>
<head>
<title>Test</title>
</head>
<body>
<SCRIPT LANGUAGE="VBScript">
Sub Notepad()
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Run("c:\windows\notepad.exe")
End Sub
</SCRIPT>
<input type="button"...
See previous thread "Re: executing notepad.exe on client PC from url link on server"
I have tried the code suggested numerous times on 3 different Windows PC's and I can't get notepad to load??
Two PC's are Windows XP/IIS and the other NT4 Server/IIS
I tried running the script from...
I also ran the below code from the command line and got this message. Should the code have the "sub" and "end sub"?
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run ("c:\windows\notepad.exe")
C:\>cscript.exe test.vbs
Dialog box pops up...
OK.
I took the following code and put it into a file called test.vbs
Sub Notepad()
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Run("c:\windows\notepad.exe")
End Sub
I then went on the server running NT4 and opened a command prompt windows and typed the...
Hi,
I can't get the above code to work!!???
I've been messing around a little and my code has changed since my last post.
This is what I have and notepad won't load on my PC (client) or on the server??
I'm stummped. Should something else be installed? I'm by no means an expert so this is...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.