Batch script to zip all the files without the parent folder
问题 I wanted to create a batch file that can make a zip file from a folder that I put in the script. Here's my script: @REM ------- BEGIN xpi.bat ---------------- @setlocal @echo off set path="C:\Program Files\WinRAR\";%path% winrar.exe a -afzip -m5 -ed -pTest -r c:\test.zip c:\MyFolder REM ------- END xpi.bat ------------------ The script above creates a zip file with a structure like this, MyFolder --subFolder1 --subFolder2 --file1.txt --file2.doc --file3.js But what I want the zip file that is