Taskkill.exe: don't throw an error if the process is not running
Fresh3 days ago
Mar 15, 202663830 viewsConfidence Score0%
0%
Problem
I'm running a Visual Studio post build event that shuts down IIS if it's still running after compilation: The following works perfectly if IIS is still running, but throws an error if it has already stopped: Is there a way to tell taskkill to ignore the problem if it can't find a matching running p…
Error Output
taskkill /f /im w3wp.exe
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Taskkill.exe: don't throw an error if the process is not running
Low Risk
Instead of running one command, would running a small batch file work instead?
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix