views:

489

answers:

2

I have c# winform bug: when the application is waiting for user input yes/no/cancel taskkill command line does not work.

Any idea?

+1  A: 

You need to use /F to force shutdown if an application shows a modal dialog:

taskkill /F /IM <process name>

taskkill /F /PID <process id>

With taskkill /? you will get a list of all supported options.

0xA3
I want somthing which not change the command line, I want to change something in c# code (in the application)
Golan
Golan, then don't show a modal dialog.
Joey
A: 

is there any alternative to dos task kill?.. like a software.

Neci