This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

Problem in Executing .exe file using Script

RAHUL BISWAS
Greenhorn

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: 4340
    
    2

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.


SCJP
Visit my download page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Executing .exe file using Script
 
Similar Threads
How to run VB application thr' Apache Tomcat Server
Executing Exe. files from HTML File Using Scripting
runtime native objects into browser
Executing .exe file using Script.
how to check the exe file validation