Skip to content

Instantly share code, notes, and snippets.

@Deathbytears
Last active April 20, 2023 19:13
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Deathbytears/0dcdbb632e02563e0143405f0b92c808 to your computer and use it in GitHub Desktop.
Save Deathbytears/0dcdbb632e02563e0143405f0b92c808 to your computer and use it in GitHub Desktop.
Batch spec script.
@echo off
::notes
::============================
::all settings need be on top
::=============================
::settings
:: menu setup is for true and false. if set false it only load your commputer states
::==============================
set version="v-1"
set buildnumb="2"
::==============================
::true and false statment settings
::==============================
set passcode=false
set codeenter=1234
::-----------------------------
:: color settings
::==============================
color 0A
title Project Zion %version%
:: ===============================
:: computer stats true false statmens
:: ===============================
set Time0=true
::---------------------------------
::stop spam clicking
::---------------------------------
set /A Lagstop=1
set lagclock=5
::=======================
::menu set up
::=======================
:loadscreen
echo ================================================================
echo Welcome to "Project Zion" [forever in gods love]
echo ================================================================
echo notice from scripter
echo.
echo *project zion file is a remasterd version of project bios
echo *project zion is more clean scripting unlike its sister script
echo were the sister script is just all over the place. project zion
echo scripting locks everything into key words and number codes.
echo.
echo *project zion is built to help tech support navigate windows
echo without issues if they dont understand the UI
echo.
echo *Note : project zion is still in testing but is going threw
echo extrem testing for its new menu system and command system
echo *if you run into issues are have ideas for project zion pleas
echo shoot developer email : terrykittyman10@gmail.com
echo.
echo ================================================================
echo build number : %buildnumb%
echo ----------------------------------------------------------------
pause
cls
goto Menu
:Menu
if %passcode%==true (
goto password
)
if %passcode%==false (
goto Menu2
)
:password
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="Password menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo Pleas input Password.
echo =================================
echo type clear to clear the window
echo =================================
set /p Menu001=""
::==========================================
::if commands for setting up menu commands
::==========================================
if %Menu001%==clear (
cls
goto password
)
if %Menu001%==%codeenter% (
cls
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Password
goto antiespamclick
:antiespamclick
::=============================
::antie spam clicking command
::=============================
if %Lagstop%==%lagclock% (
cls
echo cool down room. Stop spam clicking.
timeout /t 100 /nobreak
set /A Lagstop=1
goto Menu2
)
set /A Lagstop+=1
echo %Lagstop%
echo sorry this is not valid
echo you enterd "%Menu001%"
pause
goto %anticlickmenu%
::=============================
:Menu2
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="Main menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Tool Menu [%Menuname%]
echo =================================
echo 1 sfc menu
echo 2 Dism Menu
echo 3 ip config menu
echo 4 windows programs menu
echo 5 about commputer Menu
echo 6 Shutdown computer Menu
echo =================================
echo type clear to clear the window
echo =================================
set /p Menu001=""
::==========================================
::if commands for setting up menu commands
::==========================================
if %Menu001%==clear (
cls
goto Menu2
)
if %Menu001%==1 (
goto Menu3
)
if %Menu001%==2 (
goto Menu7
)
if %Menu001%==3 (
goto Menu4
)
if %Menu001%==4 (
goto Menu5
)
if %Menu001%==5 (
goto Menu6
)
if %Menu001%==6 (
goto Menu8
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu2
goto antiespamclick
:Menu3
::====================================-----------+++++
::sfc menu
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="SFC Menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo 1 sfc /verifyonly
echo 2 sfc /scannow
echo 3 back to menu
set /p Menu001=
::==========================================
::if commands for setting up sfc commands
::==========================================
if %Menu001%==1 (
goto command1-1
)
if %Menu001%==2 (
goto command1-2
)
if %Menu001%==3 (
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu3
goto antiespamclick
::=============================
:Menu4
::=============================
:: ip config menu
:: =============================
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="ip config Menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo 1 ipconfig /release
echo 2 ipconfig /renew
echo 3 ipconfig /flushdns
echo 4 excute all commands all at once
echo 5 back to menu
set /p Menu001=
::==========================================
::if commands for setting up ip commands
::==========================================
if %Menu001%==1 (
goto command2-1
)
if %Menu001%==2 (
goto command2-2
)
if %Menu001%==3 (
goto command2-3
)
if %Menu001%==4 (
goto command2-4
)
if %Menu001%==5 (
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu4
goto antiespamclick
::=============================
:Menu5
::=============================
:: windows programs menu
:: =============================
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="Windows programs menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo 1 defragment
echo 2 disk cleanup
echo 3 divice manger
echo 4 windows updater
echo 5 eject cd
echo 6 back to menu
echo =================================
set /p Menu001=
::==========================================
::if commands for setting up window commands
::==========================================
if %Menu001%==1 (
goto command3-1
)
if %Menu001%==2 (
goto command3-2
)
if %Menu001%==3 (
goto command3-3
)
if %Menu001%==4 (
goto command3-4
)
if %Menu001%==5 (
goto command3-5
)
if %Menu001%==6 (
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu5
goto antiespamclick
::=============================
:Menu6
::====================================-----------
::Other tools menu
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="about computer"
set loop=False
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo 1 windows
echo 2 BIOS
echo 3 CPU
echo 4 Ram
echo 5 Mother board
echo 6 hard drive
echo 7 select all to read
echo 8 to menu
set /p Menu001=
::==========================================
::if commands for setting up sfc commands
::==========================================
if %Menu001%==1 (
goto command4-1
)
if %Menu001%==2 (
goto command4-2
)
if %Menu001%==3 (
goto command4-3
)
if %Menu001%==4 (
goto command4-4
)
if %Menu001%==5 (
goto command4-5
)
if %Menu001%==6 (
goto command4-6
)
if %Menu001%==7 (
set loop=true
goto command4-1
)
if %Menu001%==8 (
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu6
goto antiespamclick
::=============================
:Menu7
::====================================-----------+++++
::Dism menu
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="Dism Menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo 1) dism /online /cleanup-image /restorehealth
echo 2) back to main menu
echo.
set /p Menu001=
::==========================================
::if commands for setting up sfc commands
::==========================================
if %Menu001%==1 (
goto command5-1
)
if %Menu001%==2 (
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu7
goto antiespamclick
::=============================
:Menu8
::=============================
::shutdown menu
::=============================
::====================================-----------
::Other tools menu
::====================================
:: menu setting commands do not mess with.
::====================================
set Menu001=1000
set Menuname="shutdown Menu"
::=====================================
::this is menu useing echo command
::=====================================
echo =================================
echo Welcome to Toolbox [%Menuname%]
echo =================================
echo 1 Shutdown
echo 2 Reboot
echo 3 bios booter
echo 4 to menu
set /p Menu001=
::==========================================
::if commands for setting up Shutdown commands
::==========================================
if %Menu001%==1 (
goto command6-1
)
if %Menu001%==2 (
goto command6-2
)
if %Menu001%==3 (
goto command6-3
)
if %Menu001%==4 (
goto Menu2
)
::=====================================
::antie spam click kick back
::=====================================
set anticlickmenu=Menu8
goto antiespamclick
::=============================
:command1-1
::===================================
::sfc command "sfc /verifyonly"
::===================================
@echo on
sfc /verifyonly
pause
@echo off
goto Menu2
:command1-2
::===================================
::sfc command "sfc /scannow"
::===================================
@echo on
sfc /scannow
pause
@echo off
goto Menu2
:command2-1
::===================================
::ipconfig command"ipconfig /release"
::===================================
@echo on
ipconfig /release
pause
@echo off
goto Menu2
:command2-2
::===================================
::ipconfig command"ipconfig /renew"
::===================================
@echo on
ipconfig /renew
pause
@echo off
goto Menu2
:command2-3
::===================================
::ipconfig command"ipconfig /flushdns"
::===================================
@echo on
ipconfig /flushdns
pause
@echo off
goto Menu2
:command2-4
::===================================
::ipconfig commands all at once
:: ipconfig /release
:: ipconfig /flushdns
:: ipconfig /renew
::===================================
@echo on
ipconfig /release
ipconfig /flushdns
ipconfig /renew
pause
@echo off
goto Menu2
:command3-1
::===================================
::open defrag menu
::===================================
dfrgui.exe
goto Menu2
:command3-2
::====================================
::disk clean up
::====================================
cleanmgr.exe
goto Menu2
:command3-3
::================================
::device manger
::================================
devmgmt.msc
goto Menu2
:command3-4
::==================================
::open windows os updater
::===================================
start C:\Windows\System32\control.exe /name Microsoft.WindowsUpdate
goto Menu2
:command3-5
::=====================================
::open cd drive
::=====================================
powershell (New-Object -com "WMPlayer.OCX.7").cdromcollection.item(0).eject()
goto Menu2
:command4-1
:: This line of code is Searching for your windows version.
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
wmic os get osarchitecture
if %loop%==true (
goto command4-2
)
goto Menu2
:command4-2
::This line of code well find your BIOS Version
wmic bios get serialnumber,smbiosbiosversion
echo.
systeminfo | findstr /b /c:BIOS
echo.
if %loop%==true (
goto command4-3
)
goto Menu2
:command4-3
echo.
wmic cpu get name
echo.
wmic cpu get Numberofcores
echo.
:: this line of code well tell us howmany processors its running
:: do note if its saying 2 to 4 ( it might be hyper threaded)
wmic cpu get NumberofLogicalprocessors
if %loop%==true (
goto command4-4
)
goto Menu2
:command4-4
echo Ram (round it to nearst MB its to)
echo.
:: this line of code well tell you your Ram.
systeminfo | findstr /C:"Total Physical Memory"
echo.
if %loop%==true (
goto command4-5
)
goto Menu2
:command4-5
echo Mother board
echo.
:: this line of code well get wat mother board type you have.
wmic baseboard get product
echo.
:: this line of code well get your mother board serialnumber
wmic baseboard get serialnumber
echo.
:: this line of code well get version of the mother board you have
wmic baseboard get version
echo.
if %loop%==true (
goto command4-6
)
Goto Menu2
:command4-6
echo.
echo Hard Drive
echo.
:: this line of code well get your hard drive Modle
Wmic diskdrive get model
echo.
::this line of code well get you hard drives serialnumber
wmic diskdrive get serialnumber
echo.
if %loop%==true (
set loop=false
goto Menu2
)
goto Menu2
:command5-1
@echo on
dism /online /cleanup-image /restorehealth
@echo off
goto Menu2
:command6-1
:: this command shutsdown the commputer
shutdown /s
:command6-2
:: this command reboots the computer
shutdown /r
:command6-3
:: this command will boot a commputer into the bios
shutdown /r /fw /f /t 0
::=====================================================================
:: Next Update
::-----------------------------------------------
::
::
::
::======================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment