I need to ZIP all files Bak inside a folder and subfolders, and at the end of each zipping job, delete the bak file. I wrote something like this, but it don't works:
for /F %%f in ('dir /s /b *.bak') do goto=1
:1
"7za.exe" a -t7z -mx3 "%%f.zip" "%%f"
del "%%f"