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