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?