title: SFTP - WinSCP: Zip a file/folder
body: <p>I'm transferring a file to SFTP and then trying to zip it with WinSCP. It's not working.</p>
  
  <p>After my <code>put</code>  command, I'm using the following command.</p>
  
  <pre><code>zip -r "!?&amp;SFTP Folder Path\MyFile.txt:?SFTP Folder Path\MyFile.zip!" !&amp;
  </code></pre>
  
  <p>What am I doing wrong? What should I be doing? If I only want to zip a/any file with specific extension or folder, what changes do I make?</p>
  
  <p>Update:</p>
  
  <p>I'm getting the following log output after a file has been copied over to the sftp 
  ... </p>
  
  <pre><code>batch continue Searching for host... 
  Connecting to host... 
  Authenticating... 
  Using username "admin". Authenticating with pre-entered password. Authenticated. Starting the session...
  </code></pre>
  
  <p>I'm using the following code after put cmd line. </p>
  
  <pre><code>option batch continue 
  call zip -r "/sftp folder/Myfile.zip" Myfile.csv 
  close 
  exit 
  </code></pre>