-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathReadme.txt
More file actions
17 lines (11 loc) · 773 Bytes
/
Readme.txt
File metadata and controls
17 lines (11 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
使用方法
//SMB1 for jcifs-1.3.17(SMB1)
JcifsAuth auth_smb1=new JcifsAuth(JcifsFile.JCIFS_FILE_SMB1, domain, username, userpassword);
//SMB2/3 by jcifs-ng
JcifsAuth auth_smb2=new JcifsAuth(JcifsFile.JCIFS_FILE_SMB201, domain, username, userpassword); //For SMB2(210)
JcifsAuth auth_smb2=new JcifsAuth(JcifsFile.JCIFS_FILE_SMB211, domain, username, userpassword); //For SMB2(211)
JcifsAuth auth_smb2=new JcifsAuth(JcifsFile.JCIFS_FILE_SMB212, domain, username, userpassword); //For SMB2or3
JcifsFile jf_smb1=new JcifsFile("smb://192.168.0.10/share/readme.txt", auth_smb1);
JcifsFile jf_smb2=new JcifsFile("smb://192.168.0.10/share/readme.txt", auth_smb2);
System.out.println("exists="+jf_smb1.exists())
System.out.println("exists="+jf_smb2.exists())