windows open current folder in cmd 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