Another technique that can be used in batch script is PUSHD and POPD. They work very similar to the CD except PUSHD remembers what the current directory was before it went to a new one, and then POPD goes back to that. Like most scripting and programming there are often multiple ways to accomplish the same result, some people prefer different flavors. I often like the PUSHD / POPD approach so that I end up back where I started after I'm done and leave things as much like they were before the BAT ran.
So you could do the below. In all cases (CD or PUSHD) I would strongly suggest you make sure you are where you expect to be after this. CD will display an error for example if the folder does not exist, but your script will go happily along its way and you could act on things in a different folder than you expected.
Open in new window
to the line before the CD line