資料夾新增右鍵DOS快捷入口

2022-01-20 15:01:00 字數 939 閱讀 3787

1.自帶的方法

win7:

按住shift鍵然後右鍵點選資料夾,選單裡會出現「在此處開啟命令視窗」一項,其實就相當於在當前位置開啟dos視窗,這個是系統自帶的。

winxp:

開啟「我的電腦」,點選選單中的「工具」-「資料夾選項」,選擇「檔案型別」,找到「(無)資料夾」,點「高階」,「新建」,在「操作」中填入 「dos快速通道」(這裡可以隨便填),「用於執行操作的應用程式」中填入「cmd.exe /k cd %l」(這個是關鍵),確定即可。

2. reg檔案匯入登錄檔方法

winxp 中的右鍵dos命令選單:

將以下內容複製到文字文件中,重新命名為doshere.reg,雙擊匯入登錄檔即可,此時會出現

「dos here」命令(方便進入dos視窗);你可以把其中的"dos here"改成自己想看到的名字;

windows registry editor version 5.00

[hkey_classes_root/directory/shell/cmd]

@="dos here

"[hkey_classes_root/directory/shell/cmd/command]

@="cmd.exe /k /

"cd %l/""

win7 中的右鍵dos命令選單:

windows registry editor version 5.00

[hkey_classes_root\folder\shell\open_dos_box]

@="[進入dos]

"[hkey_classes_root\folder\shell\open_dos_box\command]

@="cmd.exe /s /k pushd \"%v\"

"

將要修改的內容儲存在乙個字尾名為.reg的檔案中,雙擊執行就可以了。

sublime 右鍵新增資料夾

在登錄檔編輯器中找的這個節點 在 hkey classses root shell 新建節點 在shell下,新建 項 命名為sublime text 3 見名知意 在右邊視窗新建字串值 右鍵 新建 字串值 名稱 icon 值 d program sublime text 3 sublime tex...

在資料夾右鍵選單裡新增「DOS 到這裡」這個選單項

注 將以上內容儲存為以reg為副檔名的檔案,然後雙擊匯入登錄檔即可。以上方式在xp下是沒問題的,但是在win7下就不行了,下面加入在win7下的實現方式。windows registry editor version 5.00 hkey classes root folder shell open ...

在資料夾右鍵選單裡新增「DOS 到這裡」這個選單項

windows registry editor version 5.00 hkey local machine software classes drive shell cmd dos 到這裡 hkey local machine software classes drive shell cmd c...