I am a windows batch screen noob. So I need to write a script that does this:
pushd \\network.com\shared\folder\201501
copy resume*.zip c:\temp\
Where the "201501" is updated to 201502, 201503, etc for each iteration. I can obviously just write out 12 of the same lines of the same thing, but I want to learn looping syntax better.
I know i can write a loop with
for /l %x in (1, 1, 12) do (
)
But I'm not sure how to make the "201501" a variable within that path string, that changes with the integer, and i don't know how to make it handle "01" vs "12" issue either. (Ie: 201501 --> 2015012 instead of 201512)
Can anyone help me?