Solved

Vbs in html

Posted on 2004-08-26
8
326 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now