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