Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- echo.
- if "%1" == "" (goto :credits)
- if "%1" == "/?" (goto :credits)
- set color=dull
- set name=None
- set dirtowrite=None
- set beep=true
- set ret=f
- :args
- if "%1" == "-b" (
- set color=bright
- shift
- goto :args
- )
- if "%1" == "-m" (
- set beep=false
- shift
- )
- if "%1" == "-s" (
- set dirtowrite="%2"
- shift
- goto :verify
- )
- if "%1" == "" (goto :main)
- shift
- goto :args
- :callback
- shift
- call :writedir %dirtowrite%
- goto :args
- :fail
- goto :args
- :main
- echo.
- for /f "tokens=6,8,10 delims= " %%A IN ('uptime') DO (set var=%%Ad %%Bh %%Cm)
- set b=1
- set p=1
- for /f "delims=" %%A IN ('systeminfo') do (call :do "%%A")
- set osname=%v2r:~28%
- set osvers=%v3r:~28%
- set ram=%v24r:~28%
- set bios=%v17r:~28%
- set mobo=%v12r:~28%
- set mobomodel=%v13r:~28%
- for /f "delims=" %%A IN ('wmic cpu get name') DO (call :do2 "%%A")
- set cpu=%c2u:~1%
- set ostype=%v14r:~28%
- for /f "delims=" %%A IN ('wmic desktopmonitor get screenheight') DO (call :set %%A height)
- for /f "delims=" %%A IN ('wmic desktopmonitor get screenwidth') DO (call :set %%A width)
- for /f "delims=" %%A IN ('wmic diskdrive get size') DO (call :set %%A hddsize)
- for /f "delims=" %%A IN ('wmic logicaldisk get freespace') DO (call :set %%A hddfree)
- for /f "delims=" %%A IN ('wmic os get FreePhysicalMemory') DO (call :set %%A freeram)
- for /f "delims=" %%A IN ('wmic os get TotalVisibleMemorySize') DO (call :set %%A totalram)
- set /a totalram2=%totalram% / 1024
- set /a freeram2=%freeram% / 1024
- set /a usedram=%totalram2% - %freeram2%
- set /a total=%hddsize:~-0,-4% / 1024
- set /a total2=%total% * 10
- set /a total3=%total2% / 1024
- set /a free1=%hddsize:~-0,-4% - %hddfree:~-0,-4%
- set /a free2=%free1% / 1024
- set /a free3=%free2% * 10
- set /a free4=%free3% / 1024
- if "%color%" == "bright" (
- set color1=12
- set color2=9
- set color3=10
- set color4=14
- ) ELSE (
- set color1=4
- set color2=1
- set color3=2
- set color4=6
- )
- ::npx
- colous Writesec "[%color1%] ,.=:^!^!t3Z3z., [7]%userprofile:~9%[15]@[7]%COMPUTERNAME%""
- colous Writesec "[%color1%] :tt:::tt333EE3 [7]OS: [15]%osname:~0,33%%ostype:~0,3%"
- colous Writesec "[%color1%] Et:::ztt33EEE [%color3%]@Ee., .., [7]Kernel version:[15] %osvers:~0,8%"
- colous Writesec "[%color1%] ;tt:::tt333EE7 [%color3%];EEEEEEttttt33# [7]Uptime: [15]%var%""
- colous Writesec "[%color1%] :Et:::zt333EEQ. [%color3%]SEEEEEttttt33QL [7]Shell: [15]cmd.exe"
- colous Writesec "[%color1%] it::::tt333EEF [%color3%]@EEEEEEttttt33F [7]Resolution:[15] %width%x%height%"
- colous Writesec "[%color1%] ;3=*^```'*4EEV [%color3%]:EEEEEEttttt33@. [7]Window Manager: [15]DWM"
- colous Writesec "[%color2%] ,.=::::it=., [%color1%]` [%color3%]@EEEEEEtttz33QF [7]Memory: [15] %usedram%/%totalram2% MB"
- colous Writesec "[%color2%] ;::::::::zt33) [%color3%]'4EEEtttji3P* [7]BIOS: [15]%bios:~0,36%"
- colous Writesec "[%color2%] :t::::::::tt33.[%color4%]:Z3z.. [%color3%]`` [%color4%],..g. [7]MoBo: [15]%mobo:~0,-1% - %mobomodel:~0,10%"
- colous Writesec "[%color2%] i::::::::zt33F [%color4%]AEEEtttt::::ztF [7]CPU: [15]%cpu:~0,36%"
- colous Writesec "[%color2%] ;:::::::::t33V [%color4%];EEEttttt::::t3 [7]Primary HDD: [15] %free4%/%total3% GB"
- colous Writesec "[%color2%] E::::::::zt33L [%color4%]@EEEtttt::::z3F "
- colous Writesec "[%color2%] {3=*^```'*4E3) [%color4%];EEEtttt:::::tZ` "
- colous Writesec "[%color2%] `[%color4%] :EEEEtttt::::z7 "
- colous Writesec "[%color2%] [%color4%] 'VEzjt:;;z>*` [7]%date% %time%"
- if "%dirtowrite%" == "None" (goto :EnOF)
- echo.
- echo.
- Set /P var=Taking screenshot in 5... <NUL
- timeout /t 1 /nobreak > NUL
- if "%beep%" == "true" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 beep 500 200)
- if /i "%ostype:~0,3%" == "X86" (nircmd32 beep 500 200)
- )
- Set /P var=4... <NUL
- timeout /t 1 /nobreak > NUL
- if "%beep%" == "true" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 beep 500 200)
- if /i "%ostype:~0,3%" == "X86" (nircmd32 beep 500 200)
- )
- Set /P var=3... <NUL
- timeout /t 1 /nobreak > NUL
- if "%beep%" == "true" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 beep 500 200)
- if /i "%ostype:~0,3%" == "X86" (nircmd32 beep 500 200)
- )
- Set /P var=2... <NUL
- timeout /t 1 /nobreak > NUL
- if "%beep%" == "true" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 beep 500 200)
- if /i "%ostype:~0,3%" == "X86" (nircmd32 beep 500 200)
- )
- Set /P var=1... <NUL
- if not %dirtowrite% == "" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 savescreenshotfull "%tpath%\%tname%")
- if /i "%ostype:~0,3%" == "X86" (nircmd32 savescreenshotfull "%tpath%\%tname%")
- )
- if %dirtowrite% == "cur" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 savescreenshotfull "Screenshot-CMDfetch-~$currdate.MM-dd-yy$-~$currtime.HHmm$.png")
- if /i "%ostype:~0,3%" == "X86" (nircmd32 savescreenshotfull "Screenshot-CMDfetch-~$currdate.MM-dd-yy$-~$currtime.HHmm$.png")
- )
- if %beep%=="true" (
- if /i "%ostype:~0,3%" == "X64" (nircmd64 beep 700 600)
- if /i "%ostype:~0,3%" == "X86" (nircmd32 beep 700 600)
- if /i "%ostype:~0,3%" == "X64" (nircmd64 trayballoon "CMDFetch" "Screenshot Taken!" "shell32.dll,-1001" 15000 )
- if /i "%ostype:~0,3%" == "X86" (nircmd32 trayballoon "CMDFetch" "Screenshot Taken!" "shell32.dll,-1001" 15000 )
- )
- goto :EnOF
- :set
- if not "%~1" == "" (2>nul set %~2=%1)
- goto :EOF
- :do
- set v%b%r="%~1"
- set /a b=%b%+1
- goto :EOF
- :do2
- set c%p%u="%~1"
- set /a p=%p%+1
- goto :EOF
- :writedir
- set tname=%~nx1
- set tpath=%~dp1
- if not exist "%tpath%" (colous Writesec "[4]ERROR: path for '-s' does not exist"&set ret=%random%&exit /b)
- goto :EOF
- :verify
- if %dirtowrite%=="-b" (
- set dirtowrite="cur"
- goto :fail
- )
- if %dirtowrite%=="-m" (
- set dirtowrite="cur"
- goto :fail
- )
- goto :callback
- :EnOF
- set var=
- set vr=
- set color=
- set d=
- set ret=
- set color1=
- set color2=
- set color3=
- set p=
- set tpath=
- set tname=
- set color4=
- set name=
- for /l %%A IN (1,1,%b%) DO (set v%%Ar=)
- set b=
- exit /b
- goto :EOF
- :credits
- echo.Usage: screenfetch [-b / -d] [-m] [-s location]
- echo.
- echo.Options:
- echo. -d Normal colors
- echo. -b Make the art use bright colors instead of dark.
- echo. -m Mute the beeps and pop up.
- echo. -s [location] Save a screenshot to location.
- echo.
- echo.Thanks to:
- colous Writesec "[2] Arashi [10]^!1IXzW.VjDs"
- colous Writesec "[2] SaladFingers [10]^!SpOONsgtAo"
- colous Writesec "[2] Sk8rjwd"
- colous Writesec "[2] Anonymous"
- colous Writesec "[2] Developer"
- colous Writesec "[2] Jz9 [10]^!//QwUWqnYY"
- echo.
- colous Writesec "[15]And a special 'fuck you' to [2]Xyl2k [10]!Xyl2k1blhM [15]for not sharing."
- echo.
- echo.CMDfetch v.1.1
- goto :EnOF
Add Comment
Please, Sign In to add comment