Opening or running OS commands in java
I would like to know how to make OS calls from within java. I'm programming for windows 9x/2000 and would like to be able to tell the OS to open certain files (with the associated program in windows' registry). I have achieved this with runtime exec and a string. For example, lets say I want to open a file "text.txt". I can execute the string "cmd /c text.txt" to open it. However, "cmd" doesn't work in win9x and "command.com" doesn't seem to work either.
Is there a more general way of telling the OS to open files than this? I might also want to make this program work on other platforms than windows, so I would need something more general.
Thanks !

