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
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);
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