Solved

Run a VB Script in HTML & Javascript

Posted on 2015-02-24
4
66 Views
Last Modified: 2015-03-03
Hello experts,

I would like to create in my HTML page a click button which allow every user to run a VB Script.
I don't how how I can ref a .vbs file through HTML & Javascript.

Thank you in advance for your help.
0
Comment
Question by:LD16
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
Naitik Gamit earned 250 total points
ID: 40627966
Please refer this link to understand from basic how to perform vbscript in html&javascript.

https://sites.google.com/site/vbscriptcsctraining/home/adding-vbscript-code-to-an-html-page
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 40628167
you would only be able to run a vbscript file on the server, and not on the client side, is that what you mean to do?

if you're looking to run a vbscript file on the client by a button click, forget about it, it's a huge security breach. The best you could do is have a link to the vbs file, have the user download it, then provide instructions to them on how to run it
0
 

Author Comment

by:LD16
ID: 40628511
I would like that every user can download my vbscript by clicking on a link.
0
 
LVL 32

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 40628520
then just create your basic hyperlink tag:

<a href=/pathToFile/someFile.vbs">click to download vbs file</a>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

867 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

20 Experts available now in Live!

Get 1:1 Help Now