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