i need your help for this simple problem that i
couldn't resolve. ^_^
i've created ftp program using java, but found a
difficulty on "change directory" command.
i tried to implement it using :
Process p = Runtime.getRuntime().exec(cmd);
where cmd is the String = "chdir " + directory_name
but i didn't change to the a particular directory.
here is my function that implements the change
directory:
public void execCd(String param) {
// String param is the directory name that was
passed
// by the calling function
String cmd = "chdir " + param;
Process p = Runtime.getRuntime().exec(cmd);
}
any idea?