I need to store files on a network drive (MyBook Live). At the moment I am doing this:
String cmd = "mount //192.167.0.3/Public/Folder /media/Folder -o user=test,password=test"; Runtime run = Runtime.getRuntime() ; Process pr = run.exec(cmd); pr.waitFor();
Is there a better way to do this?
source share