Originally Posted by
nhabibi
Hi all,
I want to get a list of a directory with dir command (windows Vista). I write:
Runtime.getRuntime.exec("cmd.exe /C dir " + MyPath);
but the command can't find the specified path for dir. My question is that how we can pass an argument for command line's programs like dir, copy,etc?
