how to open cmd in current directory windows code example Example: open cmd in current directory cd /d %~dp0 cmd.exe