Jump to content

Öppna program via webbläsaren


Recommended Posts

Har hittat ett kod stycke som via IE + Active X startar program lokalt via webbläsaren, men nu är kruxet hur gör jag för att en klient dator ska kunna starta exempelvis notepad från min dator?

Jag kör med senaste versionen av Wamp och klienten kör senaste versionen av Internet Explorer (7)

Här är koden:

<html>

<head>

</head>

<body>

<SCRIPT LANGUAGE="VBScript">

<!--

Sub progbtn1_OnClick

Dim wshShell

Set wshShell = CreateObject("WScript.Shell")

wshShell.Run("notepad.exe ")

MsgBox "Ran Batch"

End Sub

-->

</SCRIPT>

<INPUT TYPE="BUTTON" name="progbtn1" value="Launch Program">

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...