title: Windows batch script running 7zip expecting file rather than folder names
body: <p>I have a batch script that was working perfectly fine zipping a folder in the directory but for some reason after i made a name change , it seems to be looking for a "file" to zip and password protect, instead of a "folder" i cant find the syntax needed for it to zip the folder in the source directory</p>
  
  <pre><code>@ECHO ON
  SET SourceDir=C:\job\Folder
  SET DestDir=C:\job
  
  CD /D "C:\Program Files\7-Zip"
  FOR /F "TOKENS=*" %%F IN ('DIR /B /A-D "%SourceDir%"') DO (
  7z.exe a "%DestDir%\%%~NF" -p247BRIDGES "%SourceDir%\%%NXF"
  )
  EXIT
  </code></pre>