my dog learned polymorphism
The moose likes Beginning Java and the fly likes Problem in Executing .exe file using Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem in Executing .exe file using Script" Watch "Problem in Executing .exe file using Script" New topic

Problem in Executing .exe file using Script


Joined: Jan 31, 2001
Posts: 2
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

Joined: Jan 26, 2001
Posts: 439
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.

Val SCJP <BR>going for SCJD
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

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.

Visit my download page
I agree. Here's the link:
subject: Problem in Executing .exe file using Script
It's not a secret anymore!