Vbs in html

Is it possible to use vbs scripting in html?
I'd like to make an UI for some vbs scripts.
LVL 1
rebaneAsked:
Who is Participating?
 
webwomanCommented:
No. You can use ASP/vbscript, but NOT vbs scripts. They do NOT have the same features.
0
 
FaircoCommented:
Well, if you just want to make an UI for some scripts and intend to use in the intranet, you can call external vbs scripts from a webpage.
For example:

<script language="VBScript">
<!--
Function XLS(fname)
Set WshShell = CreateObject("Wscript.shell")
WshShell.Run("\\myserver\path\Utils\Xlsole.vbs """ & fname & """")
Set WshShell = Nothing
End function
-->
</script>

Of course, this can be implemented in JavaScript as well.

It is also possible to port your vbs code to IE vbscript, if it doesn't use too advanced features.
0
 
webwomanCommented:
Provided the user is set up to allow it, which most won't be. Most vbs scripts call features that aren't normally allowed in the browser.
0
 
FaircoCommented:
Since it is meant as an UI for some external VBScript, it is most likely will be set up on a fixed number of machines, so the additional step to to lower the security for intranet zones makes no sense.
I'm also using the script above in the intranet, as a part of GUI for an external VBScript.
0
 
FaircoCommented:
Different answers were given and the asker didn't pick either. If the asker holds his/her choice back, I recommend to assume that the question is self-answered, therefore PAQ this question with no refund.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.