@REM ######################################################
@REM 可选默认使用utf-8
@REM chcp 65001
@REM ######################################################
@cls && echo off &&echo PAN:"%~d0" CD:"%~dp0" FILE:"%~f0"
@cd /d %~dp0 && echo CD:"%cd%"
@REM ######################################################
@REM echo 倒计时10秒后退出 && for /L %%i in (1 1 10) do set /p a=■<nul&ping /n 2 -w 100 127.0.0.1>nul
@REM ######################################################
windows 目录右键运行CMD
保存以下为 cmd.reg 文件然后双击导入
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]
@="CMD"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]
@="CMD"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="CMDAdmin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="CMDAdmin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="CMDAdmin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""