Struggling with command line again, I have figure out that I can store the current working directory in a variable like so:
SET current=%cd%
Move up a directory, remembering the current, set the parent, and then pop down a directory, back to where you started
@echo off set current=%cd% pushd .. set parent=%cd% popd echo current %current% echo parent %parent%