Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Аватара для Wu-Tang

Ветеран


Сообщения: 1309
Благодарности: 79

Профиль | Отправить PM | Цитировать


привет
есть твик:
Скрытый текст

; ------------========Добавить в контекстное меню для cmd, bat, exe файлов - Запустить от...=========------------

; BAT

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"SubCommands"=""
@=""
"MUIVerb"="Запустить от ..."

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell\runadmin]
"HasLUAShield"=""
"Extended"=""
@=""
"MUIVerb"="Запустить от Администратора"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell\runadmin\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell\runsys]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"Extended"=""
@=""
"MUIVerb"="Запустить от Системы"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell\runsys\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,64,00,65,00,76,00,78,00,65,00,78,00,65,00,63,00,2e,00,65,00,\
78,00,65,00,22,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,21,04,18,04,21,\
04,22,04,15,04,1c,04,10,04,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell\runti]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"Extended"=""
@=""
"MUIVerb"="Запустить от TrustedInstaller"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas2\shell\runti\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,64,00,65,00,76,00,78,00,65,00,78,00,65,00,63,00,2e,00,65,00,\
78,00,65,00,22,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,54,00,72,00,75,\
00,73,00,74,00,65,00,64,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,65,00,\
72,00,20,00,22,00,25,00,31,00,22,00,00,00

; CMD

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"SubCommands"=""
@=""
"MUIVerb"="Запустить от ..."

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell\runadmin]
"HasLUAShield"=""
"Extended"=""
@=""
"MUIVerb"="Запустить от Администратора"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell\runadmin\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell\runsys]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"Extended"=""
@=""
"MUIVerb"="Запустить от Системы"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell\runsys\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,64,00,65,00,76,00,78,00,65,00,78,00,65,00,63,00,2e,00,65,00,\
78,00,65,00,22,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,21,04,18,04,21,\
04,22,04,15,04,1c,04,10,04,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell\runti]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"Extended"=""
@=""
"MUIVerb"="Запустить от TrustedInstaller"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas2\shell\runti\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,64,00,65,00,76,00,78,00,65,00,78,00,65,00,63,00,2e,00,65,00,\
78,00,65,00,22,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,54,00,72,00,75,\
00,73,00,74,00,65,00,64,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,65,00,\
72,00,20,00,22,00,25,00,31,00,22,00,00,00

; EXE

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"SubCommands"=""
@=""
"MUIVerb"="Запустить от ..."

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell\runadmin]
"HasLUAShield"=""
"Extended"=""
@=""
"MUIVerb"="Запустить от Администратора"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell\runadmin\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell\runsys]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"Extended"=""
@=""
"MUIVerb"="Запустить от Системы"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell\runsys\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,64,00,65,00,76,00,78,00,65,00,78,00,65,00,63,00,2e,00,65,00,\
78,00,65,00,22,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,21,04,18,04,21,\
04,22,04,15,04,1c,04,10,04,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell\runti]
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,37,\
00,33,00,00,00
"Extended"=""
@=""
"MUIVerb"="Запустить от TrustedInstaller"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2\shell\runti\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,64,00,65,00,76,00,78,00,65,00,78,00,65,00,63,00,2e,00,65,00,\
78,00,65,00,22,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,54,00,72,00,75,\
00,73,00,74,00,65,00,64,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,65,00,\
72,00,20,00,22,00,25,00,31,00,22,00,00,00

хотел добавить еще, чтобы такое меню было и для reg файлов, взял сделал для:
Скрытый текст
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell\runas2]

но при запуске от системы/trusted выдает ошибку.

-------
Всему свое время и каждому свой час!
Хочешь жить - умей вертеться!


Последний раз редактировалось Wu-Tang, 18-12-2023 в 06:43.


Отправлено: 06:05, 18-12-2023 | #1687