A
A
ash_kgd2012-10-02 17:36:14
Windows
ash_kgd, 2012-10-02 17:36:14

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

2 answer(s)
V
Vitali Borovik, 2012-10-02
@WAYS

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

A
amc, 2012-10-02
@amc

By the way, you can simply put in the batch file TASKKILL /IM Chrome.exe /F
for the batch file to make a shortcut and assign a “hot” combination in the properties of the shortcut.
In order to force bang Chrome - go.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question