• 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

    • NAPS2 (Not Another PDF Scanner 2) 8.2.0 by Razvan Serea NAPS2 is a document scanning application with a focus on simplicity and ease of use. Scan your documents from WIA- and TWAIN-compatible scanners, organize the pages as you like, and save them as PDF, TIFF, JPEG, PNG, and other file formats. NAPS2 creates fully text searchable PDF files that can be imported and indexed within your document management system. NAPS2 is currently available in 40 different languages. NAPS2 key features: Scan documents using WIA- and TWAIN-compatible scanners Scan as many pages as you like from glass or ADF, including duplex support Rotate, flip, remove, and rearrange scanned pages Save as PDF, TIFF, JPEG, PNG, or other file formats Directly email PDFs Search through text included in your PDFs by using optical character recognition (OCR), in any of over 100 languages. Configure brightness, contrast, resolution, and other scan options Save your configurations as profiles to be easily reused later Optional command-line interface (CLI) for automation and scripting MSI installer and application-level configuration available for group policy (GPO) deployment Portable/standalone archives available Translations: English, Català, Čeština, Dansk, Deutsch, Español, Français, Hrvatski, Italiano, Magyar, Nederlands, Polski, Portugues, Russian, Ukrainian, Hebrew NAPS2 8.2.0 changelog: NAPS2 is now available on the Microsoft Store. It costs a small fee to support the developer and provide automatic updates. NAPS2 will continue to be freely available at www.naps2.com Added "Edit with" under the "Image" menu for using an external image editor Added "Share even when NAPS2 is closed" option for Scanner Sharing This will show a system tray icon and restart on login Imported file names are now used as the default file name when saving The "Apply to all selected" checkbox now stays checked Escl: Increased maximum time searching for devices from 5s to 60s Escl: Scanner IPs are now cached for faster and more reliable scanning Windows: Added an arm64 installer Windows: Replaced the "No friendly name" device name from some drivers with "Unknown Scanner" Mac: Fixed an issue where saved files didn't always have the right extension Mac: Disabled the "Apple Mail" email provider when not the default email reader Mac: Updated icons for Split/Combine Linux: Fixed issues with the Save dialog Download: NAPS2 (64-bit) | 43.5 MB (Open Source) Download: Portable NAPS2 8.2.0 | 61.9 MB Link: NAPS2 Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I still remember a prediction that in the future, the BIOS will have all the necessary drivers... for any OS. Still not there
    • No mandatory.... Once again the one-way approach (only incentives or only detractors, or as they say 'the carrot or the stick') has proven ineffective.
    • ScreenToGif 2.41.3 by Razvan Serea Screen, webcam and sketchboard recorder with an integrated editor. ScreenToGif is an open source program that lets you to record a selected area of your screen, live feed from your webcam or live drawings from a sketchboard. Afterward, you can edit and save the animation as a gif, apng, video, psd or png image. Also there's the Webcam Recorder and the Board Recorder. Features: Record your screen and save directly to a gif looped animation or a video. Pause and continue to record or start over by discard the recording. Move the window around to record what you want, it stays on top. You can add Text, Subtitles, Title Frames, Borders, Watermarks, Drawings, etc. Crop and Resize. Remove frames that you don't want. Select a folder to save the file automatically or select one before encoding. Add the system cursor to your recording. Very small sized and portable executable. What's new in ScreenToGif 2.41.3: Reduced app size and migrated to .NET 9. It's now easier to see the brush cursor when painting light or dark colors on background of same lightness (Editor and Board recorder). Add possibility of running the app having only newer versions of .NET by @nil4 in #1381 Updated Turkish translation by @luther09 in #1389 Added தமிழ் (Tamil) translation by @TamilNeram in #1387 Updated Greek Translation by @theoasima in #1346 Fixed Importing frames using FFmpeg v7 was getting stuck. Exporting partially using an expression was not following the frame ordering. Color picker was not selecting the correct hue. Download: ScreenToGif 64-bit | Portable 64-bit ~7.0 MB (Open Source) Download: ScreenToGif 32-bit | Portable 32-bit Download: ScreenToGif ARM64 | Portable ARM64 View: ScreenToGif Home Page | User Guide | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Explzh 9.77 by Razvan Serea Explzh is a free Windows archive manager for creating, extracting and managing archives. The program supports many different types of archives, including zip, 7z, rar, tar, ace, lzh, arj, cab, iso, img, msi, sfx and more. Apart from archive creation and extraction, you will also be able to verify compressed data for errors, initiate repair routines, split data into multiple items, and more. It additionally allows you to password protect your data and attach digital signatures to files. Key features of Explzh: Explorer-like GUI and operability. LHA, ZIP (ZIPX), JAR, CAB, RAR, TAR, TAR.XXX, 7z, ARJ, WIM, CHM, PE, HFS, NSIS Format Installer, ISO, InstallShield, MSI, and several other formats... Support for more archive formats by introducing the integrated archiver DLL. Self-extracting archive creation function that can create high-performance automatic installers. Digital signature addition function to created self-extracting archive. Office 2007 or later document compression / image optimization re-archiving function. Supports compression and decompression of Unicode file names. Supports compression and expansion exceeding 4GB. AES encryption function. You can create a robust secure ZIP encryption archive. Thumbnail function of image file. In-library file search function. . Equipped with archive file conversion function. File split function. The split file has a self-consolidation function, and can concatenate files larger than 4GB. (No need for batch file or connection software) UU (XX) Encode, Base64 decode function. FTP upload function Supports Windows 11 shell integration extended context menu. Explzh 9.77 changelog: Added a "Reset" button to the [Special Color Settings] in [Options]-[Screen Color]-[Special Colors]. *After resetting, the colors will be set to the ones that AI judges to be most optimal for the current screen mode. Updated to Visual Studio 2022 v.17.14.4. Download: Explzh 64-bit | Explzh 32-bit | ~6.0 MB (Freeware) Download: Explzh ARM64 | 5.9 MB View: Explzh Home Page | Screenshot | Themes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      Al_ earned a badge
      Week One Done
    • 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
  • Popular Contributors

    1. 1
      +primortal
      477
    2. 2
      +FloatingFatMan
      273
    3. 3
      ATLien_0
      243
    4. 4
      snowy owl
      211
    5. 5
      Edouard
      182
  • Tell a friend

    Love Neowin? Tell a friend!