taskkill/f/im PjtPkgWeightDlg.exe End Process
Start "" "D:\PjtPkgWeightDlg.exe" startup program
At the command line, enter Taskkill/? You can see some introduction to this command.
Command syntax:
TASKKILL [/S system [/u username [/p [password]]]
{[/FI filter] [/pid ProcessID |/im imagename]} [/F] [/T]
Describe:
This command-line tool can be used to end at least one process.
You can end a process based on the process ID or image name.
Parameter list:
/S system Specifies the remote system to connect to.
/u [domain\]user Specifies which user context should be in
Execute this command.
/p [Password] specifies for the provided user context
Password. If omitted, prompt for input.
/f Specifies to forcibly terminate
Process.
/FI filter Specifies that the query is filtered into or filtered out of the
The task.
The/PID process ID specifies the
Pid.
/IM image name Specifies the process to terminate
The image name. wildcard character ' * '
Can be used to specify all image names.
/T Tree Kill: Terminates the specified process
And any child processes that are started from this.
/? Displays help/usage.
Filter:
Filter name valid operator valid value
----------- --------------- --------------
STATUS eq, ne run | No response
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, format
Hh:mm:ss.
HH-When,
MM-Clock, SS-Sec
Memusage eq, NE, GT, lt, GE, le memory used, in kilobytes
USERNAME eq, NE user name, formatted as
[Domain\]user
MODULES eq, NE DLL name
Services EQ, NE service name
WindowTitle eq, NE window title
Note: The wildcard ' * ' can be used with the/im switch only with a filter.
Note: Remote processes are always forced to terminate,
Whether or not the/F option is specified.
For example:
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/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*"
a simpler example
[Plain] view plaincopy
Taskkill/pid 827
The process that ends the process ID is 827.
[Plain] view plaincopy
taskkill/f/im notepad.exe
Force end of all text editor processes
[SQL] view plaincopy
taskkill/f/fi "USERNAME eq Quinn"
Force end user name is all processes for Quinn
This article is from the "@ Fast unblocked @" blog, make sure to keep this source http://speediness.blog.51cto.com/760841/1702838
Taskkill Command Bulk End Process