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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -