Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Здесь обсуждаются темы, косвенно связанные с Far.
Post Reply
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by John Doe »

http://www.winhelponline.com/blog/shell ... l-folders/

Удивительно, но не знал об этой фиче.
Суть: служебные папки оболочки можно адресовать через "shell:", например Мои документы это shell:Personal.
Работает в поиске меню Пуск, через Win-r, в ярлыках, через ShellExecute, ...

В фаре через ShiftEnter не сработало.
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by DrKnS »

Фар такого не находит и передает в %comspec%.
Научить, в принципе, не сложно.

Надо?
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by John Doe »

Полагаю, что если добавлять, то вместе с http:, ftp: и компанией.
Сейчас запустить можно через start.

P.S.
Сходу не смог найти б/м официальную информацию об этой фиче.. Вероятно надо знать название.
User avatar
Smitis
Posts: 1709
Joined: Fri 18 Mar, 2005 12:51
Location: Питер
Has thanked: 23 times
Been thanked: 55 times

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by Smitis »

Там ещё по CLSID можно открывать папки
http://winreview.ru/polnyj-spisok-shell ... windows-8/
Last edited by Smitis on Thu 28 Sep, 2017 20:08, edited 1 time in total.
Разум когда-нибудь победит.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by John Doe »

Smitis wrote: Thu 28 Sep, 2017 20:07Там ещё по CLSID можно открывать папки
Про CLSID как раз давно знаю, ещё в плагин SmartLaunch была заложена возможность их запуска.
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by DrKnS »

А вообще всё это тривиально и прозрачно реализуется плагином:
url_launcher.zip
(1.26 KiB) Downloaded 196 times
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by John Doe »

Интересно а как получить список всех url-протоколов, зарегистрированных в системе.
User avatar
Smitis
Posts: 1709
Joined: Fri 18 Mar, 2005 12:51
Location: Питер
Has thanked: 23 times
Been thanked: 55 times

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by Smitis »

Протоколы есть в реестре. Но shell: среди них нет (это не протокол).
Зато есть HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\FolderDescriptions
Разум когда-нибудь победит.
User avatar
Xerox
Posts: 395
Joined: Sun 20 Oct, 2019 15:50
Has thanked: 354 times
Been thanked: 9 times

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by Xerox »

Smitis wrote: Fri 29 Sep, 2017 13:22Зато есть HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\FolderDescriptions
прикольно, но по shell:::{GUID} не открываются, и description не такой как надо бы description
а вот тут и description в порядке, и по shell:::{GUID} открываются:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace
User avatar
Smitis
Posts: 1709
Joined: Fri 18 Mar, 2005 12:51
Location: Питер
Has thanked: 23 times
Been thanked: 55 times

Shell Commands to Access the Special Folders in Windows 10/8/7/Vista/XP

Post by Smitis »

Xerox wrote: Fri 03 Jan, 2020 09:21 а вот тут и description в порядке, и по shell:::{GUID} открываются:
Но это только панель управления. Если не путаю, надо смотреть разделы в HKCR\CLSID на предмет наличия подразделов ShellFolder
Разум когда-нибудь победит.
Post Reply

Return to “Операционные системы, командные оболочки и прочее”