|
|
|
|
Strumenti |
30-09-2003, 16:36 | #1 |
Senior Member
Iscritto dal: Mar 2001
Città: Pisa
Messaggi: 971
|
si può terminare un processo da riga di comando?
come da oggetto...vorrei creare un collegamento che mi chiuda un programma...
__________________
www.valeweb.net - fotografare.wordpress.com Sony Vaio FE21H with Fluxbox on Ubuntu |
30-09-2003, 21:36 | #2 |
Senior Member
Iscritto dal: Mar 2001
Città: PV Milano Nord
Messaggi: 3820
|
con xp
taskkill /im COMANDO.EXE TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/F] [/T] Description: This command line tool can be used to end one or more processes. Processes can be killed by the process id or image name. Parameter List: /S system Specifies the remote system to connect to. /U [domain\]user Specifies the user context under which the command should execute. /P [password] Specifies the password for the given user context. Prompts for input if omitted. /F Specifies to forcefully terminate process(es). /FI filter Displays a set of tasks that match a given criteria specified by the filter. /PID process id Specifies the PID of the process that has to be terminated. /IM image name Specifies the image name of the process that has 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 /? Displays this help/usage. Filters: Filter Name Valid Operators Valid Value(s) ----------- --------------- -------------- STATUS eq, ne RUNNING | NOT RESPONDING IMAGENAME eq, ne Image name PID eq, ne, gt, lt, ge, le PID value SESSION eq, ne, gt, lt, ge, le Session number. CPUTIME eq, ne, gt, lt, ge, le CPU time in the format of hh:mm:ss. hh - hours, mm - minutes, ss - seconds MEMUSAGE eq, ne, gt, lt, ge, le Memory usage in KB USERNAME eq, ne User name in [domain\]user format MODULES eq, ne DLL name SERVICES eq, ne Service name WINDOWTITLE eq, ne Window title NOTE: Wildcard '*' for the /IM switch is accepted only with filters. NOTE: Termination of remote processes will always be done forcefully irrespective of whether /F option is specified or not. Examples: 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*"
__________________
"W la foca, che dio la benedoca"
poteva risolvere tutto la sinistra negli anni in cui ha governato e non l'ha fatto. O sono incapaci o sta bene anche a "loro" cosi. L'una o l'altra inutile scandalizzarsi.[plutus] |
30-09-2003, 23:38 | #3 |
Senior Member
Iscritto dal: Mar 2001
Città: Pisa
Messaggi: 971
|
ho provato...ho win xp....ma non va....non è un comando! faccio start esegui "taskkill qualcosa" ma non funge!
__________________
www.valeweb.net - fotografare.wordpress.com Sony Vaio FE21H with Fluxbox on Ubuntu |
01-10-2003, 13:19 | #4 | |
Senior Member
Iscritto dal: Mar 2001
Città: PV Milano Nord
Messaggi: 3820
|
Quote:
__________________
"W la foca, che dio la benedoca"
poteva risolvere tutto la sinistra negli anni in cui ha governato e non l'ha fatto. O sono incapaci o sta bene anche a "loro" cosi. L'una o l'altra inutile scandalizzarsi.[plutus] |
|
03-10-2003, 17:02 | #5 |
Senior Member
Iscritto dal: Mar 2001
Città: Pisa
Messaggi: 971
|
l'ho creato...è la stessa cosa...dice sempre che taskkill non è un comando
__________________
www.valeweb.net - fotografare.wordpress.com Sony Vaio FE21H with Fluxbox on Ubuntu |
03-10-2003, 17:49 | #6 | |
Senior Member
Iscritto dal: Jun 2002
Città: ALTARE
Messaggi: 12419
|
Quote:
__________________
Scusate se dico le cose come credo che stiano. Lunga vita e prosperità! /Naso San Home Page***www.AdrianaLima.it |
|
04-10-2003, 02:09 | #7 |
Senior Member
Iscritto dal: Mar 2001
Città: Pisa
Messaggi: 971
|
non so nemmeno cosa è il reskit...ma cmq fare start esegui o creare un file batch è la stessa cosa se si tratta di un unico comando...qualcuno sa dirmi come risolvere questo problema???
__________________
www.valeweb.net - fotografare.wordpress.com Sony Vaio FE21H with Fluxbox on Ubuntu |
04-10-2003, 12:00 | #8 |
Senior Member
Iscritto dal: Mar 2001
Città: PV Milano Nord
Messaggi: 3820
|
non so davvero che dirvi...
non ho il reskit e se lancio taskkill mi funziona...... boh ho xp pro normalissimo
__________________
"W la foca, che dio la benedoca"
poteva risolvere tutto la sinistra negli anni in cui ha governato e non l'ha fatto. O sono incapaci o sta bene anche a "loro" cosi. L'una o l'altra inutile scandalizzarsi.[plutus] |
04-10-2003, 12:01 | #9 |
Senior Member
Iscritto dal: Mar 2001
Città: PV Milano Nord
Messaggi: 3820
|
il mio è in inglese...
anche se non credo proprio si siano messi a tradure il comando
__________________
"W la foca, che dio la benedoca"
poteva risolvere tutto la sinistra negli anni in cui ha governato e non l'ha fatto. O sono incapaci o sta bene anche a "loro" cosi. L'una o l'altra inutile scandalizzarsi.[plutus] |
09-11-2003, 22:29 | #10 |
Senior Member
Iscritto dal: Mar 2001
Città: Pisa
Messaggi: 971
|
up!
qualcuno che possa risolvere questo mistero arcano?
__________________
www.valeweb.net - fotografare.wordpress.com Sony Vaio FE21H with Fluxbox on Ubuntu |
09-11-2003, 23:49 | #11 |
Senior Member
Iscritto dal: Feb 2002
Città: Cassino (FR)
Messaggi: 270
|
funziona a me, XP PRO + SP1 + VisualStudio.NET (potrebbe essere?)
PS: edit. e' documentato anche nell'help di WIndows... se non parte c'e' qualcosa che non va o non e' installato.. PPS: 249post oooooooooooooooooooooooooooo
__________________
|
10-11-2003, 09:34 | #12 |
Senior Member
Iscritto dal: Sep 2003
Città: Venezia
Messaggi: 611
|
esiste il comando "kill" disponibile nel resource kit, che fa quel che vuoi tu. Funziona anche con i PID, te lo consiglio in accoppiata con "tlist" (in windows xp "tasklist") per controllare tutti i processi attivi
|
10-11-2003, 16:17 | #13 |
Senior Member
Iscritto dal: Mar 2001
Città: Pisa
Messaggi: 971
|
si...ma dove lo trovo questo resource kit???
__________________
www.valeweb.net - fotografare.wordpress.com Sony Vaio FE21H with Fluxbox on Ubuntu |
10-11-2003, 20:36 | #14 |
Senior Member
Iscritto dal: Feb 2002
Città: Cassino (FR)
Messaggi: 270
|
ecco il task kill
e con questo faccio 250 messaggi... va be non vuol dire niente ma e' cifra tonda
__________________
|
10-11-2003, 20:37 | #15 |
Senior Member
Iscritto dal: Feb 2002
Città: Cassino (FR)
Messaggi: 270
|
e due...
__________________
|
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 06:05.