0

On my Windows 10 I started Chrome with this command line

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\perfil-chrome-automatizacao" 

Now I need to close it. I cant use taskkill /f /im "chrome.exe" because it will close all chrome.exe, not only the one I just opened. I tried taskkill /f /im *perfil-chrome-automatizacao* but didnt work either. How can I taskkill (or use another command) using the substring perfil-chrome-automatizacao?

1 Answer 1

1

You can query WMI in Powershell to find the process ID:

Get-CimInstance Win32_Process -Filter "commandline LIKE '%perfil-chrome-automatizacao%'" | Select ProcessId, CommandLine | format-list 

and then kill that.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.