1st off I am not very familiar with advanced programming. I have been following examples and trial and erroring things sometimes with not the right result.
I was up half the night trying to get this to work and was so close but not quite there. Basically I have a folder structure like this. JOB NUMBER/Photos In the photo folder there are 2 sub folders Hi-Res & Low-Res
I need a bat file in the Photos folder that will zip only the JPG in folder Low-Res then name the output zip file as JOB NUMBER - Photos.zip and save it to the photo folder.
On top of this once I had it working I need the zip files to be limited on their size. They must be not larger than 6mb so if they need splitting a simple 01 02 .... Can be prefixed to the zip name. I briefly saw that you could split the output based on size but didn't get that far!
Any help would be a life saver!!
UPDATE
My code so far.
for %%A in ("%%~dp0\..") do 7z a -tzip "%%~fA-Photos.zip" "Low-Res"
UPDATE @JonathonReinhart This gets the Low-res contents zipped & saved back into the Low-res folder which will be fine I just cant get the name on the zip file right. At the moment it saves as Photos-Photos.zip
for %%A in ("Low-res\Photos") do 7z a -tzip "%%~fA-Photos.zip" "Low-Res"