Translate

Saturday, 23 August 2014

Batch code for seeing all the importance informations about your CPU Configuration.

@echo off
:st
color F5
mode con: cols=53 lines=19
title Know about your Computer : Made by Ravi Singh
echo *****************************************************
echo.
echo This software is for home and personal use only.
echo Do not sale or use it at commercial label!!
echo.
echo *****************************************************
pause
cls
:start
color F5
mode con: cols=54 lines=19
echo :::: Know your Processor ::::
echo --------------------------------
echo.
echo 1. Type "N" to see the model number of youe CPU.
echo 2.Type "S" to see your CPU's maximun speed(in MHz).
echo 3. Type "C" to see your CPU's numbers of CORE.
echo 4.Type "L2" to see your L2 cache memory size(in KB).
echo 5. Type "L3" to see your L3 cache memory size(in KB).
echo 6.Type "A" to see your CPU's architecture(in Bit).
echo 7. Type "M" to see your CPU's company name.
echo 8.Type "SN" to see your CPU running on which Socket?
echo.
echo ***Type "Q" to Exit.
echo ***Type "n" for goto next page.
echo ******************************************************
set input=none
set /p "input=Input>"
CLS
if %input%==n goto getknowboard
if %input%==N goto name
if %input% EQU none goto error2
if %input%==C goto core
if %input%==c goto core
if %input%==S goto speed
if %input%==s goto speed
if %input%==A goto archi
if %input%==a goto archi
if %input%==L2 goto l2
if %input%==l2 goto l2
if %input%==L3 goto l3
if %input%==l3 goto l3
if %input%==M goto manufacturer
if %input%==m goto manufacturer
if %input%==SN goto Socket
if %input%==sn goto Socket
if %input%==N goto name
if %input%==n goto name
if %input%==Q goto exit
if %input%==q goto exit (else
goto error1
)
:speed
wmic CPU GET MAXCLOCKSPEED
pause
cls
goto start
:archi
wmic CPU GET DATAWIDTH
pause
cls
goto start
:l2
wmic cpu get L2CACHESIZE
pause
cls
goto start
:error
color FC
echo Sorry!Input should be in CAPITAL letter.
pause
cls
goto start
:manufacturer
wmic cpu get manufacturer
pause
cls
goto start
:Socket
wmic cpu get SocketDesignation
pause
cls
goto start
:name
WMIC CPU GET NAME
pause
cls
goto start
:l3
wmic cpu get L3CACHESIZE
pause
cls
goto start
:core
echo You have %NUMBER_OF_PROCESSORS% core(s) in your CPU
pause
cls
goto start
:error1
color FC
echo Sorry!no match found for your input "%input%".
pause
cls
goto start
:error2
color FC
echo You did'n select anything.Please provide an Input.
pause
cls
goto start
:getknowboard
COLOR F5
cls
mode con: cols=53 lines=21
echo :::: Know your Motherboard ::::
echo --------------------------------
echo.
echo 1. Type "MN" for name of Motherboard Company.
echo 2.Type "PR" for model no. of your Motherboard.
echo 3. Type "SE" for MB's serial no.
echo 4.Type "VE" for MB's version.
echo 5. Type "BI" for BIOS info.
echo 6.Type "SB" for SMBIOS version.
echo 7. Type "BV" for BIOS Version.
echo 8.Type "DA" for BIOS release date.
echo 9. Type "LN" fot Installed languages in BIOS.
echo.
echo ***Type "n" for next page.
echo ***Type "b" to go Back.
echo ***Type "Q" for exit.
echo *****************************************************
set input2=none
set /p "input2=Input>"
CLS
if %input2%==b goto start
if %input2%==B goto start
if %input2%==n goto DISK
if %input2%==n goto DISK
if %input2% EQU none goto error3
if %input2%==MN goto motherboardname
if %input2%==mn goto motherboardname
if %input2%==PR goto mbmodel
if %input2%==pr goto mbmodel
if %input2%==SE goto mbse
if %input2%==se goto mbse
if %input2%==VE goto mbver
if %input2%==ve goto mbver
if %input2%==BI goto bios
if %input2%==bi goto bios
if %input2%==SB goto smbios
if %input2%==sb goto smbios
if %input2%==BV goto biosver
if %input2%==bv goto biosver
if %input2%==DA goto biosdate
if %input2%==da goto biosdate
if %input2%==LN goto bioslan
if %input2%==ln goto bioslan
if %input2%==Q goto exit
if %input2%==q goto exit else (
goto error5
)
:err0
COLOR FC
echo Please type in small letter.
pause
cls
goto getknowboard
:motherboardname
wmic baseboard get manufacturer
pause
cls
goto getknowboard
:mbmodel
wmic baseboard get product
pause
cls
goto getknowboard
:mbse
wmic baseboard get serialnumber
pause
cls
goto getknowboard
:mbver
wmic baseboard get version
pause
cls
goto getknowboard
:bios
wmic BIOS get name
pause
goto getknowboard
:smbios
wmic bios get smbiosbiosversion
pause
goto getknowboard
:biosver
wmic BIOS get version
pause
goto getknowboard
:biosdate
wmic BIOS get releasedate
pause
goto getknowboard
:bioslan
wmic BIOS get listoflanguages
pause
goto getknowboard
:error3
color FC
echo You did'n select anything.Please provide an Input.
pause
cls
goto getknowboard
:error4
color FC
echo Sorry!Inputs should be in CAPITAL letter.
pause
cls
goto getknowboard
:error5
color FC
echo Sorry!Nothing found with your input "%input2%".
pause
cls
goto getknowboard
:DISK
cls
color F5
mode con: cols=53 lines=21
echo :::: Know your Hard disk drive ::::
echo --------------------------------
echo.
echo 1. Type "MD" for HDD's model.
echo 2.Type "SD" for HDD's size(in bytes).
echo 3. Type "CT" for total Cylinders.
echo 4.Type "TT" for total Tracks.
echo 5. Type "TS" for total Sectors.
echo 6.Type "TC" for Track per Cylinder.
echo 7. Type "ST" for Sector per Track.
echo 8.Type "BS" for Bytes per Sector.
echo 9.Type "TH" for totat heads.
echo 10. Type "CP" for number(s) of current partition(s).
echo.
echo ***Type "B" to go back.
echo ***Type "Q" to exit.
echo *****************************************************
set input3=none
set /p "input3=Input>"
CLS
if %input3% EQU none goto err3
if %input3%==B goto getknowboard
if %input3%==b goto getknowboard
if %input3%==MD goto diskmodel
if %input3%==md goto diskmodel
if %input3%==SD goto sd
if %input3%==sd goto sd
if %input3%==CT goto ct
if %input3%==ct goto ct
if %input3%==TT goto tt
if %input3%==tt goto tt
if %input3%==TS goto ts
if %input3%==ts goto ts
if %input3%==TC goto tc
if %input3%==tc goto tc
if %input3%==ST goto st
if %input3%==st goto st
if %input3%==BS goto bs
if %input3%==bs goto bs
if %input3%==TS goto ts
if %input3%==ts goto ts
if %input3%==TH goto th
if %input3%==th goto th
if %input3%==CP goto cp
if %input3%==cp goto cp
if %input3%==Q goto exit
if %input3%==q goto exit
if %input3%==p goto getknowboard
if %input3%==P goto getknowboard (else
goto err2
)
:th
wmic DISKDRIVE GET TOTALHEADS
pause
goto DISK
:bs
wmic diskdrive get BytesPerSector
pause
cls
goto DISK
:sd
wmic Diskdrive get size
pause
CLS
goto DISK
:cp
wmic diskdrive get partitions
pause
CLS
goto DISK
:tc
wmic diskdrive TracksPerCylinder
pause
CLS
goto DISK
:ct
wmic diskdrive get TotalCylinders
pause
CLS
goto DISK
:ts
wmic diskdrive get TotalSectors
pause
CLS
goto DISK
:tt
wmic diskdrive get TotalTracks
pause
CLS
goto DISK
:st
wmic diskdrive get SectorsPerTrack
pause
CLS
goto DISK
:diskmodel
wmic diskdrive get model
pause
CLS
goto DISK
:err1
COLOR FC
echo Sorry! Input should be in CAPITAL LETTER.
pause
CLS
goto DISK
:err2
color FC
echo Sorry!Nothing found with your input "%input3%".
pause
cls
goto DISK
:err3
color FC
echo You did'n select anything.Please provide an Input.
pause
cls
goto DISK
:exit
cls
Echo Bye Bye
pause
===========================================================

No comments:

Post a Comment