Sintassi TASKKILL [/ S sistema [/ U nomeutente [/ P [password]]]] {[filtro/FI] [/ PID processid |/IM nome immagine]} [/ F] [/ T]
Opzioni /S sistema Il sistema remoto a cui connettersi.
/U [domain\]user The user context under which
the command should execute.
/P [password] The password. Prompts for input if omitted.
/F Forcefully terminate the process(es).
/FI filter Display a set of tasks that match a
given criteria specified by the filter.
/PID process id The PID of the process to be terminated.
/IM image name The image name of the process to be terminated.
Wildcard '*' can be used to specify all image names.
/T Tree kill: terminates the specified process
and any child processes which were started by it.
Filtri Applicare uno dei filtri seguenti:
Imagename eq, ne String
PID eq, ne, gt, lt, ge, le Positive integer.
Session eq, ne, gt, lt, ge, le Any valid session number.
Status eq, ne RUNNING | NOT RESPONDING
CPUTime eq, ne, gt, lt, ge, le Time hh:mm:ss
MemUsage eq, ne, gt, lt, ge, le Any valid integer.
Username eq, ne User name ([Domain\]User).
Services eq, ne String The service name
Windowtitle eq, ne String
Modules eq, ne String The DLL name
Esempi:
TASKKILL /S system /F /IM notepad.exe /T
TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
TASKKILL /F /IM notepad.exe /IM mspaint.exe
TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *
TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"
Modifica la tua domanda e pubblica il codice sorgente del file batch che avvia questo programma java! – Hackoo
@Hackoo Sono in grado di riprodurlo con un semplice file batch con contenuto: 'java -jar MyApp.jar', dove l'applicazione mostra semplicemente una finestra vuota (' JFrame'). Dopo aver ucciso i processi dalla console di Eclipse, la finestra è ancora visibile. La mia applicazione effettiva è un po 'più complessa, ma il problema è lo stesso. –
Quindi qual è il nome di questo processo creato dalla tua applicazione? – Hackoo