Solved

Run a VB Script in HTML & Javascript

Posted on 2015-02-24
4
70 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

816 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

12 Experts available now in Live!

Get 1:1 Help Now