1.

Solve : how to close a window by dos commands?

Answer»

how to close a window throurgh dos COMMAND,
suppose a folder is open i want to close it through DOS commandsWell if you want to clowe internet explorer, this is how.

Tskill iexplore

You have to know the PROCESS name of the window you want to close. http://greasypc.blogspot.com/2008/02/want-to-use-taskkill-but-you-have-xp.html



C:\>taskkill /?

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.


C:\>tasklist /?

TASKLIST [/S system [/U username [/P [password]]]]
[/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]

Description:
This command line tool displays a list of application(s) and
associated task(s)/process(es) currently running on either a local or
REMOTE system.


C:\>tasklist

Image Name PID Session Name Session# Mem Usage
========================= ====== ================ ======== ============
System Idle Process 0 Console 0 28 K
System 4 Console 0 240 K
smss.exe 776 Console 0 424 K
csrss.exe 1120 Console 0 1,484 K
winlogon.exe 1288 Console 0 2,944 K
services.exe 1460 Console 0 3,548 K
lsass.exe 1520 Console 0 1,572 K
svchost.exe 592 Console 0 5,120 K
svchost.exe 1268 Console 0 4,872 K
svchost.exe 1652 Console 0 24,800 K
svchost.exe 1924 Console 0 3,556 K
svchost.exe 324 Console 0 3,136 K
AAWService.exe 692 Console 0 17,784 K



Discussion

No Comment Found