title: Transferring the Contents of a Folder Using smbclient
body: <p>I have written a Shell script that moves into a directory with some binaries files present.</p>
  
  <p>What I am looking to do is transfer all the files present inside this directory.</p>
  
  <pre><code>cd /home/user/binaries
  smbclient //ip.address/directory$ password -W domain -U username &lt;&lt; ENDOFMYSMBCOMMANDS
  prompt
  put *
  exit
  ENDOFMYSMBCOMMANDS
  </code></pre>
  
  <p>I tried to use <code>put *</code> to transfer all files - but this is not accepted.</p>
  
  <p>The only other option I know of is to go one folder up, and use the command <code>mput binaries</code> - but this  copies everything including the folder.</p>
  
  <p>How can I modify my script to only transfer the contents of the directory?</p>