• 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

    • Someone wrote a script to block 'brainrot' content online using an $8 smart plug by Usama Jawad Original image via Neil Chen Many people use smart plugs nowadays due to the various advantages they offer, including automation, integration with mobile software, increased home security, better energy efficiency, and compatibility with other smart products. However, a smart plug customer has gone a step further by enhancing their hardware in a way that it blocks them from viewing "brainrot" content online, or any website, for that matter. As seen in a popular thread over on Hacker News, a person known as "NWChen" has written a script that connects to the $8 Kasa Smart Wi-Fi Plug Mini and utilizes it to restrict access to websites of your choice. In essence, this plug then acts as a physical switch that you can toggle to visit certain websites. NWChen's main motivation behind this initiative was to avoid brainrot, with examples listed as X (formerly known as Twitter), Instagram, YouTube, and Reddit in their blog post. In terms of technical functionality, the smart plug connects to Wi-Fi (obviously) and hosts a physical switch that can be used to turn it on and off. NWChen's script connects to the smart plug via an API and then polls its state. If it's on, websites of your choice get restricted and you can't open them anymore, until you physically get up and turn off the plug, or remove the website from you blocklist. NWChen has recommended plugging in the hardware far away from you so there is sufficient resistance in turning off the plug. In the thread, many have praised this invention, believing that the nature of this mechanism provides enough hurdles where you'd rather just not visit the problematic websites anymore. However, some have noted that "those without self control cannot be trusted if they hold the switch". Some have also highlighted a problem where a user can simply stop the script's execution without much friction. Overall, it's a fairly interesting setup, even if it's fairly rudimentary in nature. Configuring this physical block with a Kasa smart plug is fairly easy. You can simply download the script from the laptop-brick GitHub project here, install it, get the IP address of your smart plug, and then use it when you're executing the script. You can modify the blocklist using a dedicated file present inside the GitHub project.
    • We'll probably mirror the EU rule, we've done that in many other areas, but if we don't, well we can add this as another reason why Brexit shouldn't have happened. Personally, if I started to get ads in WhatsApp, that would be a big incentive for me to want to switch to an alternative, and I doubt it will be difficult for me to get my contacts to change as well.
    • It reminds me of fossil fuels, as they try to push the price up and renewable energy continues to get better and cheaper, it's putting the squeeze on the fossil fuel industry. In this case, bringing jobs back to modern countries with higher wages would be a big incentive for corporations to remove humans from the workforce and replace them with AI and robotics, and the funny thing is about that, consumers will demand it because they want things cheaper not more expensive, also corporations will be forced to do it if they want to survive against others that go that route. At the end of the day, they didn't pick cheap labour because they wanted to do so, they did so because competition forced companies to do so, bringing jobs back to western countries would make these companies less competitive on the world stage, unless they use a lot more AI and robotics to remove a lot of humans from the workforce. With that said, bringing jobs back to more stable regions and using AI and robotics does have the benefit of reducing the risk of political trade wars and tariffs, but let's forget this idea of jobs coming back home to higher paying wages, that idea is dead in the water with the advancement of AI and robotics, and with humans, it would only end up making a lot more things more expensive.
    • Slave, assistant, companion? I think that line will blur a lot as robotics become more human like that, it wouldn't surprise me if a lot of us see them as a friend or even more.
    • It's all about flexibility, we've designed a world around humans, so having robots that can work in human like environments with the same flexibility we have, offers a lot of advantages in many areas. With that said, for specific tasks, there are better ways than human like robots, but it really depends on what task you want to do. Also, we should remember, even thought we can build human like robots, they can be built so they are stronger, faster and cheaper than we can work, so even thought that likely not as fast or as cheap as automation, it's certainly a lot more flexible and far cheaper than humans.
  • Recent Achievements

    • One Month Later
      Miguel Batista earned a badge
      One Month Later
    • Dedicated
      moojay67 earned a badge
      Dedicated
    • Week One Done
      urbanmopdubai1 earned a badge
      Week One Done
    • One Month Later
      Jim Dugan earned a badge
      One Month Later
    • First Post
      Johnny Mrkvička earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      654
    2. 2
      Michael Scrip
      230
    3. 3
      ATLien_0
      220
    4. 4
      Steven P.
      151
    5. 5
      Xenon
      145
  • Tell a friend

    Love Neowin? Tell a friend!