Solved

Vbs in html

Posted on 2004-08-26
8
335 Views
Last Modified: 2013-12-16
Is it possible to use vbs scripting in html?
I'd like to make an UI for some vbs scripts.
0
Comment
Question by:rebane
  • 3
  • 2
8 Comments
 
LVL 19

Accepted Solution

by:
webwoman earned 40 total points
ID: 11903040
No. You can use ASP/vbscript, but NOT vbs scripts. They do NOT have the same features.
0
 
LVL 3

Assisted Solution

by:Fairco
Fairco earned 40 total points
ID: 11906500
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
 
LVL 19

Expert Comment

by:webwoman
ID: 11918373
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
 
LVL 3

Expert Comment

by:Fairco
ID: 11921121
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
 
LVL 3

Expert Comment

by:Fairco
ID: 12395033
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

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question