How to execute Windows or Linux commands from a Java application?
I want to run dir command from Java application without a command prompt.
How can this be done?
well .. you could do it with
Runtime.getRuntime().exec("...")
but you really don't want to ..
if you want to get a list of files in a directory use the File api! something like file.listFiles()