how to open cmd in current directory code example
Example 1: open current dir cmd
start . or explorer .
("." is a shortcut for current director)
Example 2: how to open directory in linux using command
Just use "open [path_to_dir]" in Unix or "start [path_to_dir]" in Windows as:
open . #Open current directdory in Unix
start . #Open current directory in Windows
Example 3: open cmd in current directory
cd /d %~dp0
cmd.exe