• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in Executing .exe file using Script

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do I execute .exe file using VB Script or Java Script.
I have tried "shell" funtion of VB Script, but it doesn't work!!
 
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can suggest only one way doing that even though i never tried it and don't think it will work. I think it's best if you use WSH i think thats the name for it windos scrippting. Ok anyway you can try to do this in vbscript by using FSO object file system object. Create a batch file which will contain a command to run your .exe file. Now though fso try to open a file if it's lucky it will be triggered and executed and exe will be working. I doubt it though because most of the methods in fso are like openfileastext but might be triggered. If you would have talked about asp then it's another story you can write a simple dll which will contain a method to call that file to load.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was concidering moving this to the HTML and javascript forum, but I see there is a duplicate post there already. I am going to close this thread. If anyone can help Rahul you can answer in the HTML and javascript forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic