Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Shell Execute from VB Script

  • 13-07-2006 11:32AM
    #1
    Registered Users, Registered Users 2 Posts: 590 ✭✭✭


    Hey,

    Although this is probably very basic, i'm only new to VB Script so forgive me. I need to run an .exe from a web page using VB Script. Does anyone know how to do this?


Comments

  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    Technically you can do this, but it is not recommended as it breaches all security policies that you would normally have with the web, (eg performing a shut down command when you load the web page idea)

    Why do you need to do this. If you need functionality then you will have to write an ActiveX control to interact with the system to allow you do this.


  • Registered Users, Registered Users 2 Posts: 590 ✭✭✭bman


    The html page won't be accessible over the internet. Its to give the user the option to run one of two possible installation files when the load in an installation CD.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    Just supply the link to the file in reference format so that it doesnt require the drive letter

    eg if it was in the D:\Folder1\File1.exe and you html file was d:\html.html then the link would be .\folder1\file1.exe

    HTH


  • Registered Users, Registered Users 2 Posts: 3,160 ✭✭✭dionsiseire


    i think with VB you can use a System() command in invoke an application. just provide the address to the program in the brackets


Advertisement