![]() So what if you have to use the "/F" flag? ![]() Adding "/F" makes sure the program will be terminated, but the downside is you get a phantom/orphan notification icon. On the other hand, I can see why "/F" can be desirable, since TASKKILL alone may not be sufficient to close the program (for example, when the program hangs for whatever reason), and can ruin your subsequent commands in your script. This is as if the program crashes by itself, not having a chance to tell the OS to remove the notification icon. However, if you use "TASKKILL /F", the OS terminates the program immediately without allowing it to wrap up. When you close a program normally (e.g., by manually closing all the windows or by using TASKKILL without /F), the program sends a signal to the OS to redraw the notification area before it actually quits. Short answer: Remove the "/F" flag after TASKKILL. I know I'm a little late to the party, but still want to offer my two cents.
0 Comments
Leave a Reply. |