2

Could any one please tell how to authenticate and connect to the network drive(folder) in java in windows system. We tried with following code to connect to the network drive.

Process proc = Runtime.getRuntime().exec("cmd.exe /C START  net use M: \\127.0.0.1\\sharedNetworkDrive");

But problem with this code is not having any authentication(username and password) for that shared drive (sharedNetworkDrive). Can anyone please guide how to do this.

Jens
  • 67,715
  • 15
  • 98
  • 113

0 Answers0