Taskkill comand error
Posted: 12 Apr 2019 10:29
Hi programmers,
I encountered an issue with taskkill command:
I first wrote the following code:
it worked properly,
so I tried:
then the error message: "ERROR: it's impossible to terminte the process "chrome.exe", this process can only be terminated with the "/F" option"
Ok DOS, as you wish...
so I tried:
then another error message: "invalid option 'chrome.exe'"
what am I doing wrong?
Thanks everybody
I encountered an issue with taskkill command:
I first wrote the following code:
Code: Select all
start notepad.exe
timeout 5
taskkill /IM notepad.exe
pause
so I tried:
Code: Select all
start chrome.exe
timeout 5
taskkill /IM chrome.exe
pause
Ok DOS, as you wish...
so I tried:
Code: Select all
start chrome.exe
timeout 5
taskkill /F chrome.exe
pause
what am I doing wrong?
Thanks everybody