1.

Solve : Can i close other programs???

Answer»

I often tried to find a program which will close other programs.

Batch file can not close other programs.

Also i have not find any DOS COMMAND line utility which can close other programs.

Is there any other script thorough which i can close other programs?

Does JavaScript HELP?

ThanksBelow is a VBScript which will close notepad.exe

Code: [Select]
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'Notepad.exe'")

For Each objProcess in colProcessList
objProcess.Terminate()
Next


It can also be done in Rexx, Perl, Python or JScript (MICROSOFT's answer to Netscape's JavaScript).

Happy Scripting. kill. exe to kill the process.
tlist.exe to show a list of processes.

Availaible in the Nt ressource kit.
(Works with NT and Win2000. I don´t know if it works with other versions of Windows.

hope this helps
uliIt's also available in the Win98 RESOURCE kit.

http://support.microsoft.com/?id=247024in winxp+ it's taskkill.exe and tasklist.exeI thought it was inbuilt in 2003 onwards only.I tried to use the taskkill.exe command, unfortunately i do not know the full syntax of the command. Any help on how to use this command///?

taskkill /? should give you help.

I `d try taskkill processnumber or
taskkill processname

ulitaskkill.exe /? is about all I can get to work.

taskkill.exe name or number is an invalid syntax. I am finding it hard to understand the commands available with this program.

Say I am running
WordPad.exe
PID = 11112
Session Name = Console
Session Number = 0

What is the /taskkill.exe command to Close it?

( I noticed that you can also Force Kill Commands on remote Computers, help on how to do this would be lovely. I need to end Norton Anti-Virus on remote PCS when I am trying to connect to them for FileSharing, then reboot the PC and have it re-enabled).



Discussion

No Comment Found