Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 119
  • Last Modified:

Run a VB Script in HTML & Javascript

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
LD16
Asked:
LD16
  • 2
2 Solutions
 
Naitik GamitSoftware DeveloperCommented:
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
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
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
 
LD16Author Commented:
I would like that every user can download my vbscript by clicking on a link.
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
then just create your basic hyperlink tag:

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now