Well, since Java doesn't run on DOS but only on 32 bit operating systems you won't be able to execute DOS commands.
You can however (if you insist on loosing platform independence) execute Windows (or Unix) shell commands using the appropriate methods from the Runtime class.
As I in principle don't agree with doing this you'll have to figure out the rest on your own, there's tons of documentation about the pitfalls.
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004