Basically what I'm trying to do is to create a program that will zip all the folders where the file is run, check the integrity of the archive, and then delete the source files. Ideally I'd like to all be done using windows/7zip command line.
This is what I have so far:
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\" -mx1 -r testarchive *.zip t testarchive.zip -sdel
pause
This zips and checks the files just fine, but it deletes all the newly created archives and their source files except for the last archive created.
Any suggestions are greatly appreciated.
Edit: This looks like a step in the right direction, but it's still not working.
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\" -mx1 -r testarchive *.zip t testarchive.zip
for /d %%i in (*) do del "%%~fi\*.*" /q
pause