I have a .bat file that is used to backup data. I want to include all folders / files on a drive but exclude one folder. I can't seem to get it to do the exclusion.
Here is the WinZip Command Line.
"C:\Program Files\WINZIP\WZZIP.EXE" -xd\\PL1\PL1-G-Data\Photos\*.* "Z:\PATLAPTOP1\PL1-G-Data\%date%\PL1-G PatData All.ZIP" "\\PL1\PL1-G-PatData\*.*" -r -p
- Job is run on the PC where the 'Z:' Drive is located.
- Drive to be zipped is on PC \\PL1.
- The Drive to be zipped is PL1-G-PatData.
- Folder (with sub folders) that needs to be excluded is PL1-G-Data\Photos
What needs to be done to get it exclude the PL1-G-Data\Photos folder. Right now there are no errors but it is including the Photos folder?
Note: If using an 'Exclusion Parameter File' is a better way them I ok with it.