Skip to content

Instantly share code, notes, and snippets.

@factormystic
Created September 4, 2013 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save factormystic/6432102 to your computer and use it in GitHub Desktop.
Save factormystic/6432102 to your computer and use it in GitHub Desktop.
@echo off
REM Usage: `up <n>`
REM Will run `cd ..` n times
REM Put this file (`up.bat`) somewhere in your PATH
set many=1
if not "%1"=="" set many=%1
for /l %%x in (1, 1, %many%) do cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment