I am trying to launch a file when a button is pressed in my java program. I have read many solutions using the Runtime.getRuntime().exec() call but I can't get it working. I can't even get a file in the root c:\ directory to open. When I try the code:
Runtime.getRuntime().exec("cmd /C start \"" + "C:/WORK.txt" + " \"");
All it does is open a command prompt with the title "C:/WORK.txt". Can anyone suggest what might be wrong? Could this have anything to do with me not having administrator rights?