Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Run Exe file on page lode

Run Exe file on page lode

Scheduled Pinned Locked Moved Web Development
toolshelpjavascriptcomsysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sachin Pimpale
    wrote on last edited by
    #1

    hi all i want to load exe file which is in program files Ex.'VPC32.exe' which is of Symantic Antivirus when user access my url on load of page the exe will execute that time the application is already installed on client machine for that i used function runcmd() { File = 'VPC32.exe'; WSH = new ActiveXObject('WScript.shell'); WSH.run(File); } but gives error as Automation server cant create object please help me

    "also how i can search that there is required application of that exe is installed on users system or not (if exist run exe) using javascript"

    The Stifler -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.

    D 1 Reply Last reply
    0
    • S Sachin Pimpale

      hi all i want to load exe file which is in program files Ex.'VPC32.exe' which is of Symantic Antivirus when user access my url on load of page the exe will execute that time the application is already installed on client machine for that i used function runcmd() { File = 'VPC32.exe'; WSH = new ActiveXObject('WScript.shell'); WSH.run(File); } but gives error as Automation server cant create object please help me

      "also how i can search that there is required application of that exe is installed on users system or not (if exist run exe) using javascript"

      The Stifler -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.

      D Offline
      D Offline
      daveyerwin
      wrote on last edited by
      #2

      change the extention of the web page from .html (or .htm) to .hta

      M 1 Reply Last reply
      0
      • D daveyerwin

        change the extention of the web page from .html (or .htm) to .hta

        M Offline
        M Offline
        milpo
        wrote on last edited by
        #3

        Hi, If you want to run an exe file , you can use asp.net processinfo class Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo("cmd.exe"); // this will open command prompt psi.Arguments = " yourexefile.exe parmeter[1] parmeter[1] etc. "; p.StartInfo = psi; p.Start(); or you can use xp_cmdshell present in master database if you are using MS SQL as database to run the exe file:)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups