script to terminate process in task manager

Discuss and share scripts and script files...
Post Reply
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

script to terminate process in task manager

Post by swan_x »

i need a script to terminate end process in task manager….
ex. end explorer.exe

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: script to terminate process in task manager

Post by serendipity »

swan_x wrote:i need a script to terminate end process in task manager….
ex. end explorer.exe

Code: Select all

  
//Kill Explorer
   run "cmd /k taskkill /IM explorer.exe";
I did not try the above, but tried to kill IE (iexplore.exe) and it worked:

You can add /F to force kill explorer.exe

I don't know your OS but this might not work in XP home. See this link for similar command in XP home:

http://commandwindows.com/taskkill.htm

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: script to terminate process in task manager

Post by swan_x »

no...no....

your script (lanch cmd) power off my pc!!
i want only terminate explorer.exe...

and Taskkill is not recognized by XY...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: script to terminate process in task manager

Post by serendipity »

swan_x wrote:no...no....

your script (lanch cmd) power off my pc!!
i want only terminate explorer.exe...

and Taskkill is not recognized by XY...
Oh! all i know that killing explorer.exe does not power off PC. Strange.
OK, i had a spare XP professional PC here and using this killed explorer:

Code: Select all

 run "cmd /k tskill explorer";
And yes XYplorer does not support taskkill/tskill but command-line does support and you can run command-line commands from inside XYplorer.
The above script first opens command-line, as if you clicked start>Run>cmd and then executes the rest of the command.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: script to terminate process in task manager

Post by zer0 »

Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: script to terminate process in task manager

Post by swan_x »

@ zer0
ok! sorry! i want delete this post....how to???

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: script to terminate process in task manager

Post by Stefan »

swan_x wrote:@ zer0
ok! sorry! i want delete this post....how to???
Too late! :D Just keep it in mind for next time :wink:

Post Reply