String user = "piper:$0407ppr";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(user);
path = "smb://172.20.8.33/c$/XData/Piper/DataBase/Excel_Export/test.txt";
//String path = "smb://my_machine_name/D/MyDev/test.txt";
SmbFile sFile;
try {
sFile = new SmbFile(path, auth);
SmbFileOutputStream sfos = new SmbFileOutputStream(sFile);
sfos.write("Test".getBytes());
sfos.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}