1.

Solve : A simple batch file, lots of confusion?

Answer»

Heya, I'm back. I've been studying up a bit on my coding and programming and someone asked me a question. The question was "Could that remote shutoff denial program you made be reversed to close explorer?". I shrugged and said something along the lines of "Probably, but I'd just write something different.". Eventually the curiosity overcame me and I tried it. It didn't work. My code is as follows:

Code: [Select]@echo off
:start
taskkill /im explorer.exe /f /t
goto start
Bugs/issues:

  • Closes all expected files (explorer and folders) as well as Windows MEDIA Player
  • Only runs once; possibly self terminated by the explorer shutdown

No rush on getting back to me. At least this time I gave it some thought. If this won't work, is it possible to create a file that runs only when explorer is opened?when you say, "explorer" do you mean the windows explorer or the internet explorer???Quote
Bugs/issues:

* Closes all expected files (explorer and folders) as well as Windows Media Player
If you end the Explorer.exe process, you can expect to 'screw' up your COMPUTER.

What exactly are you trying to accomplish by doing this?Quote from: blastman on June 02, 2008, 07:55:09 AM
when you say, "explorer" do you mean the windows explorer or the internet explorer???
Windows explorer.

Quote from: Carbon Dudeoxide on June 02, 2008, 07:56:35 AM

If you end the Explorer.exe process, you can expect to 'screw' up your computer.

What exactly are you trying to accomplish by doing this?

HRM... I guess Media Player -should- close? That may be a hint to a problem on this computer then. Usually when I close explorer through things LIKE task manager, most other programs remain running. Yes, folders close, but programs usually remain open.

Ideally, only explorer should close.

As for what I'm trying to accomplish, I just want to see if it can be done. My friend NATE asked and I want to see if it can be done.


Discussion

No Comment Found