api - Connect to a drive in remote machine and read all files and directories in Java -


i need connect remote machine using domain credentials, , later must able read , write files , directories in particular drive after session can disconnected.

is there java code or api available this. example:

file newdirectory = new file("\\remotemachine\c$\x");

boolean result = newdirectory.mkdir();

the above code says result=false, because not have access remotemachine.

how connect remote machine credentials, accessing , changing directories , files.


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -