posted 22 years ago
Hi,
This doesn't actually have anything to do with threads; I'm going to recommend that it be moved.
First, as far as running rasmol goes: this code should work, given the right assumptions. Can you give any more details regarding what happens?
Second, as to running commands like dir or cls: both of these are built into the "cmd" or "command" shell on Windows (which you have depends on the Windows version, of course.) Therefore, you have to run "cmd" and tell it to run the command:
Now, note that that output from this process won't go to the terminal but to a Java InputStream that you can read from; get it using p.getInputStream().
Also, I doubt that running "cmd /c cls" is going to do anything, but it might surprise you.