smbclient -L servername
will show you all available samba / windows shares
To connect to a windows or samba share type
smbclient \\\\servername\\share -U username
you will be asked for your windows password for the username specified
once connected smbclient works like an FTP client
type help for a list of commands.
Keep in mind, you'll need a leading "\" before spaces (ex: My\ Filename.txt).
or alternatively put your filenames in quotes eg "My Filename.txt"
to copy directories and subdirectories type
to not be asked (prompted)if you want to replace files. type