Skip to content

Instantly share code, notes, and snippets.

@vanpeerdevelopment
Created December 24, 2013 15:38
Show Gist options
  • Save vanpeerdevelopment/8114850 to your computer and use it in GitHub Desktop.
Save vanpeerdevelopment/8114850 to your computer and use it in GitHub Desktop.
Bat file to show the usage of pushd and popd to go back to the directory the bat file was run from.
pushd %1
pushd ..
REM Do some work here.
popd
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment