Solved

Run a VB Script in HTML & Javascript

Posted on 2015-02-24
4
80 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 33

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 33

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

751 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