差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 下次修改 Both sides next revision | ||
java:jcifs [2015/01/04 02:08] tony [Test] |
java:jcifs [2015/09/13 23:08] 127.0.0.1 外部編輯 |
||
---|---|---|---|
行 22: | 行 22: | ||
return new SmbFile(aTarget, auth); | return new SmbFile(aTarget, auth); | ||
} | } | ||
+ | </code> | ||
+ | 如果有網域,可以使用 | ||
+ | <code java> | ||
+ | new NtlmPasswordAuthentication(domain, user, passwd); | ||
</code> | </code> | ||
在建立完SmbFile物件後,剩下其實就和操作一般檔案無異。 | 在建立完SmbFile物件後,剩下其實就和操作一般檔案無異。 | ||
行 161: | 行 165: | ||
* [[http://jcifs.samba.org/|JCIFS official site]] | * [[http://jcifs.samba.org/|JCIFS official site]] | ||
* [[http://sanjaal.com/java/875/java-utilities/java-tutorial-using-jcifs-to-copy-files-to-shared-network-drive-using-username-and-password/|Copy File]] | * [[http://sanjaal.com/java/875/java-utilities/java-tutorial-using-jcifs-to-copy-files-to-shared-network-drive-using-username-and-password/|Copy File]] | ||
+ | * [[http://stackoverflow.com/questions/14749434/how-to-copy-file-from-smb-share-to-local-drive-not-in-domain-with-jcifs|JCIFS with domain]] |