Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Running another .exe file

 
webmaster forum
jaincool  Offline
Activity
0%
 
Regular Coder
Posts: 50
Topics: 15
September 15, 2008, 12:12:11 PM

I have a program in which i am required to run another .exe file which the user will give as his input ,he will be giving me the whole path for running the file .Anyone got any info as to weather or not this can be done and in case it can be done ,how we can do this Huh??
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
September 16, 2008, 04:13:12 AM

Yup Smiley Its actually quite easy, but I think (for some reason) the Java developers have hidden the API a little.

Use
Process proc = (Runtime.getRuntime()).exec("myproggie.exe") ;

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page January 31, 2012, 07:06:40 PM