@echo off doskey clear=cls doskey history=doskey /history doskey ~=pushd "%userprofile%" set prompt=CMD $P$G REM echo aliases set: `history`, `clear` REM echo `~` will be `pushd` on top of dir stack. `popd` to get out. echo on