The Samba-Bugzilla – Bug 5042
smbclient file transfer corrupts excel files
Last modified: 2007-10-25 05:34:51 UTC
When using smbclient to transfer from Windows to Unix (using below command on the Unix machine) the excel files (xls) get corrupted (pdf's, csv's etc work ok). However, if you just drag n drop OR copy n paste to the Unix Samba share from the Windows side it works just fine.
/hfx/opt/samba/bin/smbclient //servername/sharename password -userdomain\username -c "prompt; mget filename*;q"