[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 125
  • 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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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