I need to connect to a shared folder on a remote windows machine through java , where i put my domain authentication (username and password ) in the code , here is my code
File file = new File("\\theRemoteIP\webapps");
File[] files = file.listFiles();
System.out.println("access done");
for (int i = 0; i < files.length; i++)
{
String name = files[i].getName();
System.out.println(name);
}
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…