Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Executing .exe file using Script

 
RAHUL BISWAS
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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!!
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • 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.
 
Randall Twede
Ranch Hand
Posts: 4369
3
Java
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic