I am trying to execute command line arguments via Java. For example:
// Execute command String command = \"cmd /c start cmd.exe\"; Process child = Runtime.ge
Try this link
You do not use "cd" to change the directory from which to run your commands. You need the full path of the executable you want to run.
Also, listing the contents of a directory is easier to do with the File/Directory classes