Интеграция в контекстное меню Windows Explorer

'При' команде.

"Команда AT планирует команды и программы для работы компьютера в требуемое время и дату. Услуга Расписания должна работать для использования команды AT".

36
задан Peter Mortensen 3 December 2009 в 10:16
поделиться

2 ответа

You will need to access the registry and add a key under root\\File\\shell or root\Folder\\shell, depending on which items you want the menu item visible on.

Try this article at CodeProject, it's quite useful.

Edit: There's another article here which may be of help.

25
ответ дан 27 November 2019 в 06:16
поделиться

It is, incidentally, not supported to use .NET for shell extensions, due to the current inability to host multiple runtime versions in the same process (.NET 4 will lift this restriction).

Consider the case where you have two shell extensions; one for .NET 3.5, one for .NET 1. Which runtime will get loaded into your process? Well, it's more or less random--it depends which shell extension gets loaded first. Sometimes it might be the 2.0 runtime, sometimes it might be the 1.1 runtime.

This is also an issue if a .NET program creates common file dialogs; your shell extension may or may not load, and may or may not run with the correct runtime version.

As such, if you go down the Shell extension route you should use native C++/COM/Win32.

3
ответ дан 27 November 2019 в 06:16
поделиться
Другие вопросы по тегам:

Похожие вопросы: