1. 程式人生 > >Windows在當前目錄(檔案)開啟cmd視窗

Windows在當前目錄(檔案)開啟cmd視窗

將下面的內容儲存到一個.reg檔案,再雙擊執行即可。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\cmdhere]
@="Cmd&Here"

[HKEY_CLASSES_ROOT\*\shell\cmdhere\command]
@="cmd.exe /c start cmd.exe /k pushd \"%L\\..\""

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere]
@="Cmd&Here"

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere\command]
@="cmd.exe /c start cmd.exe /k pushd \"%L\""