title: Use makecab to zip a whole folder
body: <p>I see there is a nice way in this post </p>
  
  <p><a href="https://stackoverflow.com/questions/28043589/how-can-i-compress-zip-and-uncompress-unzip-files-and-folders-with-bat/28043695#28043695">How can I compress (/ zip ) and uncompress (/ unzip ) files and folders with batch file without using any external tools?</a></p>
  
  <p>to zip the folder using makecab. One problem with the above script is it can't handle long file name (with long extension name). Fox example, if I have a file with file name, somelongfilename.extension, after I zip and unzip, the filename will be SOMELO~1.EXT. Can anybody direct me a way to fix it? </p>