• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to launch a windows prog from java  RSS feed

 
Mehul Mistry
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I'm developing a desktop search directory[in java] where in i want the file names that a present to act as a link which can open a "windows explorer" program.Also it should open it with displaying the folder containg that file.
Can anyone please tell how to do this in java.

Regards,
Mehul
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YOu can use Runtime.exec to start external programs. The JavaIntermediateFaq links to an article explaining some of the problems to avoid with this approach.

How to have it open a particular directory depends on what command-line parameters it accepts; you'll have to investigate those.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!