Results 1 to 2 of 2
- 02-18-2011, 08:15 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 1
- Rep Power
- 0
- 04-01-2011, 09:50 PM #2
Member
- Join Date
- Apr 2011
- Posts
- 4
- Rep Power
- 0
You will need to add jcifs to the project.
String user = "administrator:password";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(user);
String path = "smb://192.168.2.14/c$/test.txt";
SmbFile sFile = new SmbFile(path, auth);
SmbFileOutputStream sfos = new SmbFileOutputStream(sFile);
sfos.write("Some Text".getBytes());
System.out.println("Done");
Similar Threads
-
how to access a file in the present folder.
By AnanthNag.Kundanala in forum New To JavaReplies: 2Last Post: 01-11-2011, 04:40 PM -
Single user Login authentication
By vinoopraj in forum Web FrameworksReplies: 0Last Post: 07-20-2010, 09:19 AM -
Program to validate a user against LDAP for login Authentication
By syntel in forum Java ServletReplies: 2Last Post: 05-18-2010, 04:12 PM -
preventing access/locking a folder?
By solris in forum New To JavaReplies: 1Last Post: 06-29-2009, 01:20 AM -
how to access shared file/folder in LAN
By ksheetiz in forum NetworkingReplies: 1Last Post: 05-24-2008, 05:54 AM
Bookmarks