Post: Help fix my batch file. Please?
03-15-2011, 12:25 AM #1
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
(adsbygoogle = window.adsbygoogle || []).push({}); I made a fake virus because I got bored and saw a thread about one, so I started making one from scratch. The problem I am having is even if i enter y for remove the virus, at the end it still shuts down the computer. Any help is appreciated

    
@echo off
echo A virus has been detected on your computer. Action is essential.
set input=
set /p input= Would you like to attempt to remove the virus? [Y/N]
if %input%==Y goto Success
if %input%==N goto Fail
if %input%==else goto Fail
:Success //Creating "Success"
set input=
set /p input= We have detected your antivirus is Norton. Use Norton to remove virus? [Y/N]
if %input%==Y goto Success1
if %input%==N goto Fail
if %input%==else goto Fail
:Success1 //Creating "Success1"
echo Locating virus please wait...
dir \Program Files\
pause
echo Virus located. Removing virus please wait...
dir \windows\system32\
pause
set input=
set /p input= Thank you for cooperating. The virus was successfully removed. Exit now? [Y/N]
if %input%==Y goto Exit
if %input%==N goto Manual
if %input%==else goto Manual
:Manual //Creating "Manual"
echo You have either chosen N or typed an invalid letter. You will have to exit manually.
:Exit //Creating "Exit"
echo Exiting...
taskkill //A virus has been detected!.bat
:Fail //Creating "Fail"
echo The virus has not been removed and is infecting your computer.
shutdown -s -t 5 -c "Error: 0x65H78G2Y9IQ0ZCF92FDY819=0x67293IYHAO96520HBCMZNJ97. Unkown error. Your computer will shutdown."



EDIT: If your wondering why its
    taskkill //A virus has been detected!.bat
is because thats what its named on my computer. If you wish to use this rename it to whatever YOU save it as. Also, switch the antivirus it detects to your antivirus.
(adsbygoogle = window.adsbygoogle || []).push({});
03-15-2011, 10:16 PM #2
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Please help me guys.
03-16-2011, 02:54 PM #3
Cody_h4x
Nobody is like me
Very good nice thing I think you should leave the shutdown at the end though looks cool and scares you no matter which one you picked :p

The following user thanked Cody_h4x for this useful post:

Post Count
03-16-2011, 10:26 PM #4
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Originally posted by h4x View Post
Very good nice thing I think you should leave the shutdown at the end though looks cool and scares you no matter which one you picked :p


Alright thanks. :bro:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo