Windows Forums
http://forum.mintywhite.com/

[Tutorial]Batch file to kill/start/restart process[Tutorial]
http://forum.mintywhite.com/viewtopic.php?f=40&t=3272
Page 1 of 1

Author:  Batupata [ Mon Jan 11, 2010 1:57 pm ]
Post subject:  [Tutorial]Batch file to kill/start/restart process[Tutorial]  Topic is solved

If you often restart explorer or other processes with task manager, this one is useful to you.

Kill process: Open up notepad and write this in it
@echo off
taskkill /f /IM processname.exe

Start process:
@echo off
processname.exe


Restart:
@echo off
taskkill /f /IM processname.exe
processname.exe


Then save it as .bat file and put it wherever you want.

Heres example with explorer and MagicDisk
@echo off
taskkill /f /IM explorer.exe
taskkill /f /IM magicdisk.exe
explorer.exe
magicdisk.exe


Reply if that was useful :D
Download Restart Explorer.bat here:
http://www.mediafire.com/?jzkmmhjzou0

Author:  Rich [ Mon Jan 11, 2010 4:45 pm ]
Post subject:  Re: [Tutorial]Batch file to kill/start/restart process[Tutorial]

Thanks for the tutorial -- nice and easy to follow.

Author:  Veneno [ Wed Jan 13, 2010 9:47 am ]
Post subject:  Re: [Tutorial]Batch file to kill/start/restart process[Tutorial]

Nice tutorial.

You can do the same with Services (services.msc). ;)

Author:  Batupata [ Wed Jan 13, 2010 1:15 pm ]
Post subject:  Re: [Tutorial]Batch file to kill/start/restart process[Tutorial]

Yea, it can be done with many different things :)

Author:  ebildude123 [ Sun Jan 31, 2010 12:48 am ]
Post subject:  Re: [Tutorial]Batch file to kill/start/restart process[Tutorial]

Actually:

@echo off
"DRIVE:\FOLDERS\processname.exe"

Author:  mchldpy [ Tue Jul 13, 2010 10:16 am ]
Post subject:  Re: [Tutorial]Batch file to kill/start/restart process[Tutorial]

hello,
when applying bat file i get "process could not start... press ok to terminate" here's my list:

@echo off
taskkill /f /IM conhost.exe
taskkill /f /IM lxczcoms.exe
taskkill /f /IM lxczjswx.exe
taskkill /f /IM lxczpswx.exe
taskkill /f /IM schedul2.exe

i know bat files work because i do my services that way, and i am in THE REAL administrator accnt.
any suggestions?

thanks,
michael clyde

Author:  mchldpy [ Tue Jul 13, 2010 10:19 am ]
Post subject:  Re: [Tutorial]Batch file to kill/start/restart process[Tutorial]

to ebildude123,
thanks for the correction, it worked

michael clyde

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/