mIRC Homepage
Posted By: HaleyJ opposite of /run? - 04/03/07 04:56 PM
like the /run C:\Program Files\file\file.exe is their a way to close an external app through mIRC
Posted By: truguce Re: opposite of /run? - 04/03/07 11:18 PM
I dont belive this can be done. I have never seen a command that can do it. There might be a dll out there but have never looked.
Posted By: RusselB Re: opposite of /run? - 04/03/07 11:34 PM
Looking at the help file, I suspect that this might be done using COM Objects, however, since I've never worked with them I don't want to say for sure.
Posted By: Kardafol Re: opposite of /run? - 04/03/07 11:41 PM
/run taskkill [/F (forcefull, forces it to quit)] /IM <process>


TASKKILL [/S system [/U username [/P [password]]]]
{ [/FI filter] [/PID processid | /IM imagename] } [/F] [/T]

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

/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.

Filter Name Valid Operators Valid Value(s)
----------- --------------- --------------
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
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.

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 /S system /U domain\username /FI "USERNAME ne NT*" /IM *
TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"

I'm running on winxp MCE, so it *might* not be able to you, but I'd expect you to have it.
Posted By: HaleyJ Re: opposite of /run? - 05/03/07 12:00 AM
That was very very helpful to me, thanks alot.
© mIRC Discussion Forums