• 0

How To Kill Explorer When Running Program


Question

Ok, I was reading some posts about BF2 and someone said they kill their explorer using ctrl+alt+del and then running the game to get extra resources. It works fine but I was wondering if there is a way I can add an argument to the bf2.exe so it does this automatically?

I have a dock, konfabulator, and some other programs I use constantly...is it possible to include an argument that can kill those as well? Thanks :)

13 answers to this question

Recommended Posts

  • 0

make a batch file for each game.

******* is for each of the programs u want closed...Konfab. Dock, Explorer

Start taskkill /im Explorer.exe
Start taskkill /im ********
Start taskkill /im ********
Start taskkill /im ********
Start taskkill /im ********
start [path]/gamename
exit

  • 0
  Beastage said:
First of all, you can't kill explorer when running windows :)

for the others I'm sure its doable (don't know how) but I'm actually interested to see how its possible, so I'm adding my self to your question :p

586443873[/snapback]

You can kill explorer using task manager. When you end the process all you get left with is the task manager window but you can then run a program using the file menu. Whenever I get done with the game I just to go to file>run>explorer.exe and everything comes back. I'm assuming this is killing explorer?

Thanks, tch1005, I'll give those a shot. :)

  • 0
  tch1005 said:
make a batch file for each game.

******* is for each of the programs u want closed...Konfab. Dock, Explorer

Start taskkill /im Explorer.exe
Start taskkill /im ********
Start taskkill /im ********
Start taskkill /im ********
Start taskkill /im ********
start [path]/gamename
exit

586443897[/snapback]

Don't forget to add lines to restart those services after gamename ends..

And its completely possible to kill explorer while running windows :dontgetit:

  • 0
  HellBender said:
Don't forget to add lines to restart those services after gamename ends..

And its completely possible to kill explorer while running windows :dontgetit:

586443937[/snapback]

Hellbender, would you mind telling me how to do that? Or do you know of a site that explains these types of commands? Thanks :)

edit: Hmmm, I made the batch file and typed the commands that tch1005 suggested. It does kill the programs I want but then it pops up the "turn off computer" prompt. It also says it cannot find the path of the game but I know it is correct (D:\Games\Battlefield_2\BF2.exe). Am I missing something?

Edited by soloredd
  • 0

You are able to end-task "explorer.exe" through ALT-CTRL-DEL..and you can still run your system fine but you just won't have access to your taskbar, which will we gone when you end task "explorer.exe." Just make sure to re-run explorer by going back into ALT-CTRL-DEL and File > Run New Task > "Explorer.exe" after your done playing your game. :D

  • 0

There was a project a while ago on neowin whereby some members started to make a lil' program that ended all other processes when you ran it for playing games n' shizzle, but the performance gain was too small to make the program worthwhile i think.

Maybe someone could chase the creators up?

  • 0
  Julius Caro said:
I thought that games already did something with the other running processes.

Let's say, I have around 100 free mb of RAM. I start a game, play it, and then close it. When I check again I have A LOT more RAM.

586444940[/snapback]

That's because of the way Windows handles memory management. When a game starts, it allocates TONS of memory. Windows flushes everything that's not in use (ie. everything except the game) into the swap file to gain the maximum amount of available RAM. Then, the game uses up most of the available RAM, and it performs better. Tasks that aren't as critical (such as the system shell - explorer.exe) don't get their jobs done as quickly, but the whole point is that they don't need to while the game is running.

Basically, what I'm saying is Windows knows how to manage memory and other resources, and forcibly killing the shell or other services is a waste of time.

  • 0
  John said:
Basically, what I'm saying is Windows knows how to manage memory and other resources, and forcibly killing the shell or other services is a waste of time.

586445060[/snapback]

That would've been my point if I had known about it, lol :p

Edited by Julius Caro
  • 0
  soloredd said:
Hellbender, would you mind telling me how to do that? Or do you know of a site that explains these types of commands? Thanks :)

edit: Hmmm, I made the batch file and typed the commands that tch1005 suggested. It does kill the programs I want but then it pops up the "turn off computer" prompt. It also says it cannot find the path of the game but I know it is correct (D:\Games\Battlefield_2\BF2.exe). Am I missing something?

586443971[/snapback]

You can use the wait command before starting BF2.

start /wait Path to BF2
start explorer.exe

That forces it to wait until BF2 exits, then it relaunches explorer.

  • 0
  Julius Caro said:
I thought that games already did something with the other running processes.

Let's say, I have around 100 free mb of RAM. I start a game, play it, and then close it. When I check again I have A LOT more RAM.

586444940[/snapback]

My quest for figuring this is more for the running apps...konfabulator, yzdock, nod32, and itunes. The explorer.exe isn't much of an issue, I was just experimenting. It's kind of a pain to close everything, play the game, then start them again. The big one is yzdock as it steals focus when you have the mouse at the bottom of the screen.

Thanks for the help everyone, I'll see if I can't mess around a bit more and get it to work...it still wants to shut the computer down and says it cannot find the path :huh:

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The new official logo of the GOP
    • Linux 6.16-rc1 is out: What's new and what does it mean for your system? by Paul Hill Linus Torvalds, head and founder of the Linux kernel, has announced the closure of the merge window where major new features are added to the kernel, and the beginning of the Linux 6.16 release candidates, beginning with release candidate 1 (Linux 6.16-rc1). Linux 6.15 was released two weeks ago and in the time since, developers have had the opportunity to try and get their new kernel features into the Linux 6.16 kernel. Over the next two months, we will get seven or eight release candidates where developers will stabilize new and existing features. This means that the stable version of Linux 6.16 will arrive around the end of July. Torvalds said that the merge window seemed pretty normal this time, but did say he had a feeling that there were more “late straggler” pull requests than is typical. Despite this, everything seems to be fine and the schedule will be going forward as planned. Key areas of development Torvalds explained that around half of the changes in the first release candidate were driver updates, with the bulk of those being made up with by GPU and networking drivers. For end users these are the most important changes because when your favorite distribution of Linux ships a new release with this kernel, it will support more graphics cards and networking equipment like Wi-Fi cards. The non-driver updates in this version are split between architecture-specific updates, documentation and tooling (perf tool and selftests), and core changes to filesystems, core kernel, memory management, and networking. Torvalds said the core changes include some of the “most important” changes, though they’re not necessarily major changes. Fixes to the core ensure a more stable Linux kernel for end users, plus better performance. The merge window saw developers submit thousands of non-merge commits and merges. The non-merge commits were around 13,000 while the merge commits nearly reached 1,000. There were 1,783 unique authors submitting code during this window. Next steps Over the coming weeks, Linux developers, including individuals or representatives of companies, will submit bug fixes for new and existing features. This release candidate cycle will run until around the end of July and then the final version will become available. End users shouldn’t go out and download Linux 6.16 when it’s released, instead just wait for your Linux distribution to update to it, as distribution-specific changes get made. Neowin will be following these releases and reporting on any interested changes that are noted. Source: LKML
    • There was no cancelation. Microsoft delayed work on it to focus on further tuning the OS and improving the OS experience overall, before going full core into a direct hardware battle with their partners.
    • As someone who has 500+ hours of playtime on Anno 1800, all I can say is shut up and take my money.
  • Recent Achievements

    • Week One Done
      MadMung0 earned a badge
      Week One Done
    • Reacting Well
      BlakeBringer earned a badge
      Reacting Well
    • Reacting Well
      Lazy_Placeholder earned a badge
      Reacting Well
    • Dedicated
      Epaminombas earned a badge
      Dedicated
    • Veteran
      Yonah went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      474
    2. 2
      +FloatingFatMan
      273
    3. 3
      ATLien_0
      242
    4. 4
      snowy owl
      210
    5. 5
      Edouard
      182
  • Tell a friend

    Love Neowin? Tell a friend!