7zip issues
Posted: 12 Dec 2018 11:45
Hi Folks -
I'm banging my head against the wall on trying to exclude a certain directory from my archive process.
In the folder Target, there is a subfolder called "Archive" that I want to exclude. I can't seem to get it to work. Can anyone see what I'm doing wrong?
Thanks!
I'm banging my head against the wall on trying to exclude a certain directory from my archive process.
Code: Select all
SET "ASCENDDRIVE3=\\server.client.com\TM1_CDM_Data\Target"
SET "PDD_ZIP_PATH=%ASCENDDRIVE3%\Archive\PDD_TO_DATAHUB_OB_FILES_%DATETIME%.zip"
CALL "7z.exe" a -tzip "%PDD_ZIP_PATH%" "%ASCENDDRIVE3%" -x!%ASCENDDRIVE3%\Archive
Thanks!