cmd get current directory code example
Example 1: open current dir cmd
start . or explorer .
("." is a shortcut for current director)
Example 2: open cmd in current directory
cd /d %~dp0
cmd.exe
start . or explorer .
("." is a shortcut for current director)
cd /d %~dp0
cmd.exe