java - network drive connect ( 네트워크 드라이브 연결 )


java - network drive connect ( 네트워크 드라이브 연결 )

[code] NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(null, "[윈도우계정ID]", "[윈도우계정 비밀번호]"); String path = "smb://8.8.8.8/[네트워크이름]/public/개인정보출력테스트.txt"; String copyPath = "smb://8.8.8.8/[네트워크이름]/public/111111111122222223333333333333.txt"; SmbFile sFile = null; SmbFile sDestFile = null; try { sFile = new SmbFile(path, auth); sDestFile = new SmbFile(copyPath, auth); sFile.copyTo(sDestFile); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { ...



원문링크 : java - network drive connect ( 네트워크 드라이브 연결 )