pushd and popd

Wednesday, 25 December 2013, 20:44

Tags: CLI Windows

The pushd command can be used to change the current directory and save the directory you came from. Every time the pushd command is executed the origin directory will be pushed on top of the stack that saves the history of origin directories. The popd command will pop the the top directory of the stack and navigate back there.

Read more


%~dp0

Tuesday, 24 December 2013, 15:53

Tags: CLI Windows

%~dp0 is a very useful command when writing bat files. It will resolve to the folder in which the executing bat file is located. It is also very weird looking, but there is an explanation for the structure of the command.

Read more