p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Java Basics (http://p2p.wrox.com/forumdisplay.php?f=199)
-   -   Accessing exe in Java (http://p2p.wrox.com/showthread.php?t=48734)

pandian October 6th, 2006 02:27 PM

Accessing exe in Java
 
Dear Friends,

I know that we can access the exe in Java by the help of

Runtime & Process Class . But through this Class i can't able to

call exes other than windows default exe

( like notepad,Taskmanager,regedit. )



I can only call the exe in C:\WINNT Location . I can't able

to call other exe which are not in C:\WINNT Location .


how can i call exes which are not in C:\WINNT Location

panacea October 9th, 2006 08:25 PM

Put them in your $PATH / %PATH% or refer to their locations absolutely. E.g. String exeFilename = "c:\\myprograms\\foo.exe";.

Jon Emerson
http://www.jonemerson.net/


All times are GMT -4. The time now is 12:33 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.