Answer the question
In order to leave comments, you need to log in
Context menu in Windows XP, 7?
Good day!
Please tell me the way in which in the actual added menu item, in the context menu ([HKEY_CLASSES_ROOT\Directory\shell\chrome\command]
@="C:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\ Google\\Chrome\\Application\\chrome.exe") instead of launching the program, it closes it.
Possible use case for .vbs?
Answer the question
In order to leave comments, you need to log in
You can simply write a batch file with the content:
@echo off
setlocal ENABLEDELAYEDEXPANSION
Set Process=chrome
tasklist | Find /i "%Process%.exe" || (goto Else)
:THEN
TASKKILL /IM "%Process%.exe"
Exit
Goto end
:ELSE
//Тут пишем действие если хром не запущен (если оно нужно)
Exit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question