檔案資源管理器右鍵選單壞了_如何在Windows 10的檔案資源管理器中的其他專案選單中新增其他檔案型別...
檔案資源管理器右鍵選單壞了
The New Item menu in File Explorer allows you to create a new item for a specific program in the currently open folder. You can add items to this menu for other programs not included on it.
通過檔案資源管理器中的“新建專案”選單,您可以為當前開啟的資料夾中的特定程式建立一個新專案。 您可以為該選單中未包括的其他程式新增專案。
You’ll see this menu both on File Explorer’s Home tab, and on the right-click menu for any given folder, as shown here:
您將在File Explorer的Home選項卡上以及任何給定資料夾的右鍵選單上看到此選單,如下所示:
Some programs add entries to the New Item menu automatically, and some don’t. To add an item to the New Item menu for a program not on the New Item menu, we will use a combination of the Windows’ ShellNew folder and the registry. We’ll show you using a
有些程式會自動將條目新增到“新項”選單中,有些則不會。 要將專案新增到“新專案”選單上而不是程式的“新專案”選單中,我們將結合使用Windows的ShellNew資料夾和登錄檔。 我們將以GIMP (.xcf)檔案為例向您展示,儘管該檔案可以與許多其他檔案型別一起使用。
第一步:將模板檔案新增到ShellNew資料夾 (Step One: Add a Template File to the ShellNew Folder)
The first thing we need to do is to create a new file in the program we want to add to the menu. For example, we created a new file in GIMP and set the size of the image to the size we want new images to be by default. We saved our GIMP file as template.xcf
.
我們要做的第一件事是在要新增到選單的程式中建立一個新檔案。 例如,我們在GIMP中建立了一個新檔案,並將影象的大小設定為我們希望新影象預設為的大小。 我們將GIMP檔案儲存為template.xcf
。
You can’t save your file directly to Windows’ ShellNew
folder, so save it somewhere in your Documents folder, and then copy and paste the file into the C:\Windows\ShellNew
folder. Click “Continue” on theDestination Folder Access Denied dialog box to give Windows permission to copy the file to the folder.
您不能將檔案直接儲存到Windows的ShellNew
資料夾中,因此請將其儲存在Documents資料夾中的某個位置,然後將檔案複製並貼上到C:\Windows\ShellNew
資料夾中。 單擊“目標資料夾訪問被拒絕”對話方塊上的“繼續”,以授予Windows許可權將檔案複製到資料夾。
The file is pasted into the ShellNew
folder. You may see other files there that were added automatically when you installed other programs.
該檔案將貼上到ShellNew
資料夾中。 您可能會在其中看到其他檔案,這些檔案是在安裝其他程式時自動新增的。
第二步:將模板檔案新增到登錄檔 (Step Two: Add Your Template Fileto the Registry)
Now that our new file is in place, we’re going to add a key to the registry that will use that file to create new files in the program we’re adding to the New Item menu.
現在我們已經有了新檔案,我們將向登錄檔新增一個金鑰,該登錄檔將使用該檔案在新增到“新建專案”選單中的程式中建立新檔案。
Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.
標準警告:登錄檔編輯器是一個功能強大的工具,濫用它會使您的系統不穩定甚至無法執行。 這是一個非常簡單的技巧,只要您按照說明進行操作,就不會有任何問題。 也就是說,如果您以前從未使用過它,請在開始之前考慮閱讀有關如何使用登錄檔編輯器的資訊。 並在進行更改之前一定要備份登錄檔(和您的計算機!)。
Open the Registry Editor by hitting Search/Cortana and typing regedit
. Click regedit
under Best Match, or press Enter, to open the Registry Editor and give it permission to make changes to your PC.
通過單擊搜尋/ Cortana並輸入regedit
開啟登錄檔編輯器。 單擊“最佳匹配”下的regedit
,或按Enter,以開啟登錄檔編輯器並授予其對PC進行更改的許可權。
In the Registry Editor, expand the HKEY_CLASSES_ROOT key in the left sidebar.
在登錄檔編輯器中,展開左側邊欄中的HKEY_CLASSES_ROOT項。
Then, scroll down and look for the file extension that corresponds to the app you want to add to the New Item menu in File Explorer—in our case, .xcf
for GIMP files. Right-click on the extension and go to New > Key.
然後,向下滾動並查詢對應的應用程式,你要新增到新的專案選單中的檔案資源管理器中,在我們的情況下,副檔名.xcf
為GIMP檔案。 右鍵點選副檔名,然後轉到新建>金鑰。
Name the new key ShellNew
.
將新金鑰命名為ShellNew
。
Next, you’ll need to create a new value inside the ShellNew
key. Right-click the ShellNew
key and choose New > String Value.
接下來,您需要在ShellNew
鍵中建立一個新值。 右鍵單擊ShellNew
鍵,然後選擇“新建”>“字串值”。
Name the new string value FileName
and then double-click on the new value.
命名新的字串值FileName
,然後雙擊新值。
Enter the name of the file you created into the “Value data” box and click the “OK” button.
在“數值資料”框中輸入您建立的檔案的名稱,然後單擊“確定”按鈕。
Close the Registry Editor by going to File > Exit or clicking the “X” in the upper-right corner of the window.
通過轉到檔案>退出或單擊視窗右上角的“ X”,關閉登錄檔編輯器。
To have this change take effect, you need to restart your PC, not just sign out and back in.
為了使此更改生效,您需要重新啟動PC,而不僅僅是退出並重新登入。
如何使用新選單項 (How to Use YourNewMenu Item)
Now you can create a new file of the type you added. Open File Explorer and navigate to the folder in which you want to create the new file. Then, click the “Home” tab.
現在,您可以建立新增型別的新檔案。 開啟檔案資源管理器,然後導航到要在其中建立新檔案的資料夾。 然後,單擊“主頁”選項卡。
In the New section on the Home tab, click the“New Item” button. You should see an option for the program you added on the drop-down menu. In our example, “GIMP image” was added to the menu. Select the new option to create a new file of that type.
在“主頁”選項卡上的“新建”部分中,單擊“新建專案”按鈕。 您應該在下拉選單上看到新增的程式的選項。 在我們的示例中,“ GIMP影象”已新增到選單中。 選擇新選項以建立該型別的新檔案。
You can also access the new option by right-clicking in the right pane in File Explorer and going to New > GIMP image (or the option for the program you added).
您也可以通過右鍵單擊“檔案資源管理器”中的右窗格並轉到“新建”>“ GIMP映像”(或新增的程式的選項)來訪問新選項。
The new file you created is given a default name of “New” followed by the name of the option, but you can rename the file by selecting it and pressing F2.
您建立的新檔案的預設名稱為“ New”,後跟該選項的名稱,但是您可以通過選擇檔案並按F2來重新命名該檔案。
To open the new file, simply double-click on it…
要開啟新檔案,只需雙擊它即可。
…and it opens in the associated program.
…並在相關程式中開啟。
To remove an app from the New Item menu that you added, simply delete the ShellNew
key in the registry under the appropriate extension under HKEY_CLASSES_ROOT.
要從新增的“新項”選單中刪除應用程式,只需在登錄檔中的HKEY_CLASSES_ROOT下相應副檔名下刪除ShellNew
項。
NOTE: This procedure may not work for some programs, because not all programs support creating new files outside of the program. It worked for GIMP, but we also tested adding Snagit (.snag files) to the New Item menu and that did not work. You’ll have to experiment with programs you want to add. Don’t worry, though. If you try to add a program to the New Item menu and it doesn’t work, it won’t harm your system. You can simply delete the registry key you added and the file you added to the ShellNew
folder.
注意:此過程可能不適用於某些程式,因為並非所有程式都支援在程式外部建立新檔案。 它適用於GIMP,但我們還測試了將Snagit(.snag檔案)新增到“新建專案”選單中,但無效。 您將不得不嘗試要新增的程式。 不過不要擔心。 如果您嘗試將程式新增到“新項”選單中,但該程式無法正常工作,則不會損害您的系統。 您可以簡單地刪除新增的登錄檔項和新增到ShellNew
資料夾的檔案。
檔案資源管理器右鍵選單壞了