/    Sign up×
Community /Pin to ProfileBookmark

Can I Run windows APP from a Javascript web?

Hi, I have an HTML toolbar that I made using VBScript thar launches mstsc to remote servers and a few “” shared folders. I know that i can do the same thing in js, but not entirely shure about the sintaxis. Can anyone give me a hand with it?

This is an example of what i got in my original toolbar:

[CODE]<html>
<body bgcolor=”lightgrey”>
<fieldset>
<input type=”BUTTON” name=”SERVER1″ value=”SERVER1″ language=VBS onclick=”Server1″>
<input type=”BUTTON” name=”PINGS1″ value=”P” language=VBS onclick=”pings1″>
<a href=”\server1C$”>C:</a><br>
</fieldset>
</body>
</html>

<script language=”vbscript”>
Sub Server1
Set oShell = CreateObject(“WScript.Shell”)
oShell.run “mstsc.exe /v:Server1”
Set oShell = Nothing
End sub
Sub pings1
Set oShell = CreateObject(“WScript.Shell”)
oShell.run “ping -t pings1”
Set oShell = Nothing
End sub
</script>[/CODE]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@onlinetrainingSep 15.2010 — I would say no. Browser based applications are forbidden direct access to the computer resources
Copy linkTweet thisAlerts:
@aponcetauthorSep 16.2010 — mmm, I dont think so. I use this every days as a toolbar on my active desktop, and I can also open it in IE. The only thing i must do is allow the page to use activex controls. But I cant use this on chrome sence it only runs javascript and not VBs.
Copy linkTweet thisAlerts:
@aponcetauthorSep 20.2010 — I made it work, but only on IE, on Chrome doesnt work sence its a sandbox system.
×

Success!

Help @aponcet spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...