- Как настроить контекстное меню Windows 10: добавление, удаление команд и т.д.
- Добавление и удаление объектов в контекстное меню
- Бонус
- How add context menu item to Windows Explorer for folders [closed]
- 5 Answers 5
- Add “Add to Path” to context menu
- Add to Path to Context menu
- Add to Path through Command Line
- Правим контекстное меню в Windows 7-10. Самый простой и удобный способ.
- Add menu item to windows context menu only for specific filetype
- 3 Answers 3
Как настроить контекстное меню Windows 10: добавление, удаление команд и т.д.
Если оставить всё как есть, контекстные меню в системе Windows быстро становятся переполненными. Когда в меню при нажатии правой кнопкой мыши слишком много объектов, через которые нельзя прокручивать колесом мыши, приходится нажимать на стрелки наверху и внизу, что неудобно.
При этом, наверняка, в контекстном меню есть по меньшей мере одна программа, которую вы никогда не используете.
Вы можете настроить контекстное меню по своему усмотрению, избавившись от ненужных добавленных сторонними приложениями команд. Различные инструменты упрощают процесс добавления команд в часто используемое программное обеспечение, утилиты и т.д.
Microsoft даёт возможность получить быстрый доступ к разным панелям управления и местоположениям, нажав правой кнопкой мыши на меню «Пуск» или используя сочетание клавиш Windows + X. При этом в контекстных меню не хватает множества полезных команд.
Например, не помешала бы возможность очищать корзину на рабочем столе Windows при помощи контекстных меню из любого места системы. Добавление команды очистки корзины при нажатии правой кнопкой мыши по рабочему столу позволит обойтись без использования иконки корзины.
Другие идеи для добавления в контекстное меню Windows:
- Командная строка с правами администратора
- Возможность подтверждать владение файлами и папками
- Команды для перезагрузки, выключения и спящего режима
- Ускорение доступа к инструментам вроде «Очистка системы», «Восстановление системы» и тому подобным, которые обычно находятся глубоко внутри меню
Утилита «Управление компьютером» в Windows даёт доступ к менеджеру диска операционной системы, диспетчеру устройств, монитору производительности, планировщику задач, просмотрщику событий, сервисам и т.д. в одном месте. Удобно было бы добавить её в контекстное меню.
Нужно иметь в виду, что многие инструменты контекстного меню правильно работают только при запуске с правами администратора.
Такой вариант запуска должен быть доступен в тот момент, когда вы правой кнопкой мыши щёлкните на исполняемый файл. Также вы можете кликнуть на программу, удерживая на клавиатуре Control и Shift.
Добавление и удаление объектов в контекстное меню
Если вы хотите удалить из меню только один объект, лучше делать это при помощи возможностей самой системы.
Другим наиболее быстрым способом является утилита CCleaner Portable (Инструменты > Запуск> Контекстное меню), хотя во время тестирования здесь не было полного списка программного обеспечения из контекстного меню. Рекомендуется использовать эту портативную версию предложения, которую можно быстро удалить.
Glary Utilities предлагает похожий уровень функциональности с более удобным интерфейсом, но программа бесплатная только поначалу.
Бонус
Можно выбрать, будет появляться контекстное меню слева или справа от указателя мыши. Откройте диалоговое окно «Выполнить» и введите для запуска окна «Параметры планшетного компьютера»:
Откройте вкладку «Другие» для выбора стороны отображения меню.
How add context menu item to Windows Explorer for folders [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago .
I have found out how to add right-click context menu items to files on Windows Explorer, by adding keys to the registry. I.e. I can right-click on a file in Explorer and run a custom app against that file.
I would like to do the same for a folder and have not found a way to do that (yet). I see articles on creating/writing custom context menu handlers, but I would rather not go there.
I have found an article here on how to add cascading context menu items to the Desktop and to the «Computer» in Explorer, but this does not work for any folder.
I would like to be able to add my custom app to the context menu and have it work on both files and folders. Is there a way to do this without writing a context menu handler?
I found the solution in the below article, which describes how to do this via the registry for files, as well as for folders:
The following two articles provided additional info and options:
5 Answers 5
In the registration editor ( regedit.exe ) find:
- Context menu for right click on folders in left panel of Windows Explorer or on background of a directory in right panel:
- HKEY_CLASSES_ROOT\Directory\Background\shell if you are administrator
- HKEY_CURRENT_USER\Software\Classes\directory\Background\shell if you are a normal user
- Context menu for right click on folders in right panel of Windows Explorer:
- HKEY_CLASSES_ROOT\Directory\shell if you are administrator
- HKEY_CURRENT_USER\Software\Classes\directory\shell if you are a normal user
- Context menu for any file:
- HKEY_CLASSES_ROOT\*\shell if you are administrator
- HKEY_CURRENT_USER\Software\Classes\*\shell if you are a normal user
- add a new key under shell , naming it as you want to name the context menu item
- add a new key inside this key, named command (mandatory name)
- edit the default property in command to myprogrampath\path\path\executable.exe %1 to pass the file path and name of the selected file to your custom program
- Add icon: add a string value named icon for key created at step 1 with value matching an icon resource path. You can also provide an integer arguments to specify which icon to use. Example: %SystemRoot%\System32\shell32.dll,3
- Display only on shift-click: add an empty string value named Extended for key created at step 1
- Customize menu entry label: change the value of default value for key created at step 1
- Change menu entry location: add a string value named Position with one of: Top , Bottom
Add “Add to Path” to context menu
Sometimes when you do many installations on your Windows you need to specify the path each time manually. Instead of doing that manually you can create a shortcut of “Add to Path” in the context menu. In this article the method of adding path to context menu will be explained.
Path is an environment variable which specifies the set of directories where executable programs are located. Every executing path has its own PATH string. The commonly used programs can run easily using the PATH command . But if it is not used properly it can even slow down the performance of your computer. When we run a program without specifying the complete path, Windows will look in the paths given in the PATH variable and will try to find the executable we are trying to run.
If it doesn’t find the complete application path from there, it will give an error that it is not recognized as an internal or external command, operable program or batch file. Either we will need to specify the full path of the program or we can add the folder where this program is located to the PATH variable.
Before adding path to the context menu, it is important to know the concept of environment variables. Environment variables are the variables which tells the environment in which the programs run. They can tell you where is you window installed or what is your current working directory? where are temporary files installed?.
Each environment variable contains a variable name and its value. There are two types of variables.
- System variables
- User variables
User variables contain information specific to the user account like your user profile information and the temporary files installed on your account while the system variables stores the information same to all user accounts i-e the information related to your system not related to any specific user like where is your windows or system path installed.
Path is also an environment variable which comes under both system and user environment variables. Some programs require to know the path of the specific program. You need not to add the path in most cases . The system or user software do that automatically. However, sometimes you require to explicitly mention the path in the environment variables.
Add to Path to Context menu
You can add “Add to path” option in the menu using the following method.
- Download the pathed tool which is a part of gtools from the link.
- Extract the file in the folder you have downloaded it.
- Now download this AddCurrentFoldertoPathVariable.zip and extract it in the folder. It contains 2 registry files i-e AddPathEntries.reg and RemovePathEntries.reg.
- If you have extracted the pathed in the same folder as it was downloaded then double click AddPathEntries.reg and accept the window prompt and your key values will be successfully added to the registry editor.
- If you have extracted it in another folder, right-click the AddPathEntries.reg file and select Edit to open it in any editor.
- You will see the folder in which you have extracted the files twice for example i have extracted it in C:\Users\User \GTools\\pathed.exe . Change the path to your correct path in both lines.
- Save the file and double click it and then you are done with that.
Add to Path through Command Line
Alternatively, if you do not want to install any tool or add anything in the registry file you can add path through command line. Though this is quick but you have to add path for each installation separately.
In order to add path through command line, open command prompt and type the following command
setx path “%path%;c:\DirectoryPath”
For example , if you want to add c:\Users\yourusername to the path variable type the following command
setx path “%path%;c:\Users\YourUsername”
The path variable is mostly managed in the background and the system and user software take care of it but for some programs or software you have to add the path manually otherwise your operating system will not work properly and it can result in error if you changed any system or user variable path mistakenly. In such cases, this add to path variable in the context menu can be quite handy. It’s up to you whether you wan to install a software to add the variable in the context menu or you want to add it using command prompt.
Правим контекстное меню в Windows 7-10. Самый простой и удобный способ.
Привет! Часто вижу статьи о том, как отредактировать контекстное меню в Windows (появляется при клике правой кнопкой мыши) при помощи правок в реестре. Метод конечно рабочий и несомненно заслуживает внимания, но мне хотелось бы показать более простой и к тому же удобный способ, которым может воспользоваться любой пользователь. Как Вы уже поняли, редактор реестра нам не пригодится .
На этот раз мы воспользуемся замечательной утилитой под названием Easy Context menu . Программу можно скачать на многих ресурсах, стОит только «загуглить».. Но, на всякий случай оставлю >> ссылочку . После скачивания необходимо извлечь папку с программой из архива в любое удобное место. Для запуска утилиты используем EcMenu_x64.exe , либо, если установлена 32-х битная версия Windows, запускаем через EcMenu.exe .
Думаю, не стОит перебирать варианты, при которых нам может потребоваться изменение контекстного меню. У каждого из нас на этот счёт могут быть свои причины.. Такие, как удаление из меню ненужных пунктов , либо напротив, добавление какой- либо важной программы и т.д .
Сама же программа предлагает нам множество опций и имеет дружелюбный интерфейс. После запуска можно выбрать Русский язык:
Далее, если просто пролистать список, мы увидим разделы:
- Контекстное меню рабочего стола
- Контекстное меню моего компьютера
- Контекстное меню дисков
- Контекстное меню папок
- Контекстное меню файлов
- Контекстное меню exe файлов
Здесь нет никаких трудностей. Ясно, что контекстное меню при клике по пустому месту на рабочем столе и при вызове его же в открытой папке (к примеру) — будут отличаться. Т.е. программка даёт нам возможность отредактировать именно нужную менюшку. К тому же, утилита сразу предлагает нам множество функций, которые можно добавить в меню (либо убрать) простановкой «галочек» :
После того, как нужные «галочки» стоят, необходимо применить изменения нажатием на данную иконку:
И сразу же проверяем, добавились ли нужные пункты:
Здесь же мы видим, что создался родительский пункт «Стандартные инструменты» и в него вложился мною отмеченный «Диспетчер задач» . А что, если мне не нравится имя родительского пункта? Конечно же его можно изменить на своё усмотрение. Для этого жмём иконку с шестерёнкой:
Выделяем пункт, который нужно изменить и в правой части редактируем:
Вместо «Стандартные инструменты» я пишу «Утилиты» , после чего нажимаю кнопку «Сохранить» :
Add menu item to windows context menu only for specific filetype
i’ve dveloped an application that load an image using the context menu of window (right click on the file) and for the moment is working, but the reg key is on
and it works with all files.
I want that the menu item on the context menu should be displayed only with .jpg files.
Whow i can do that? Which registry keys i should use?
Thanks in advance.
3 Answers 3
1) Identify the file type (ProgID) for .jpg files
This can be done by checking the default value of HKEY_CLASSES_ROOT\.jpg . It could be anything based on what you’ve installed, but for the purposes of this example, we’ll call it jpegfile , a common default.
2) Set the context menu item (verb) properties for that file type
You can set per-user context menu items in HKEY_CURRENT_USER\Software\Classes\jpegfile\shell . This key has a list of verbs for the file type. There is a similar key in HKEY_LOCAL_MACHINE\Software\Classes\jpegfile\shell , and these are the system defaults for the file type. You can put a verb key there too, but if the same key exists in HKCU, it will be overridden, so be advised.
3) Set the command value
The bare minimum key value that needs to be set to get it to work is the default value of the command subkey. You need to set that with the path to your application, like so: HKEY_CURRENT_USER\Software\Classes\jpegfile\shell\open_with_myapp\command would be set to «c:\path\to\myapp.exe» «%1» . Now a context menu for .jpg files will have a «open_with_myapp» item which will launch your app when clicked, and pass the file name of the selected file as a parameter. Of course, how your application processes parameters is up to you, so you’d need to set the parameter string to something your app can process.
4) Set other verb properties
I’d imagine you’re probably going to want the context menu item to read something a little more friendly than the key name. You can have the context menu display whatever label you want for your item by setting the default value of that key ( open_with_myapp ).
That’s your basic overview. Definitely check out my answer to this question about associating a file, which has a similar answer: