opening same file type

hi,Runtime.getRuntime().exec(new String[]{"cmd","/c","start","f:\\myfile.pps"});

from the code above i only able to open a default file by the name "myfile.pps".

How do I want to open a file of the same file type ie.("any file name".pps) that i save in thef:\\ directory without changing the filename?

thanks

jp

[547 byte] By [juniorprogrammera] at [2007-11-27 8:36:19]
# 1

What do you mean? Are you wanting to be able to specify which program to open or open all the files with that extension? To open a file that you specify, you will want to store the file name in a String. String fileName = "someFile.pps";

Runtime.getRuntime().exec("cmd /c F:/" + fileName);

drawimagea at 2007-7-12 20:33:13 > top of Java-index,Java Essentials,New To Java...
# 2
String fileName = "someFile.pps";Runtime.getRuntime().exec("cmd /c F:/" + fileName);from the code above how do i want to open all the files with the same extension ".pps" in the f:\\
juniorprogrammera at 2007-7-12 20:33:13 > top of Java-index,Java Essentials,New To Java...
# 3

String fileName = "someFile.pps";

Runtime.getRuntime().exec("cmd /c F:/" + fileName);

from the code above how do i want to open all the files with the same extension ".pps" in the f:\\ directory?

thanks

jp

juniorprogrammera at 2007-7-12 20:33:13 > top of Java-index,Java Essentials,New To Java...
# 4
One thread is more than enough! http://forum.java.sun.com/thread.jspa?threadID=5187816
prometheuzza at 2007-7-12 20:33:13 > top of Java-index,Java Essentials,New To Java...