Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- echo.
- set d=f
- set color=dull
- set name=None
- if "%1" == "" (set d=t)
- if "%1" == "/?" (set d=t)
- if "%d%" == "t" (
- echo.Usage: screenfetch [-b] [-s location] [-d]
- echo.
- echo.Options:
- echo. -d Normal colors
- echo. -b Make the art use bright colors instead of dark.
- 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"
- 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
- )
- set dirtowrite=None
- if "%1" == "-b" (set color=bright)
- if "%2" == "-b" (set color=bright)
- if "%3" == "-b" (set color=bright)
- if "%1" == "-s" (set dirtowrite="%~2")
- if "%2" == "-s" (set dirtowrite="%~3")
- if "%3" == "-s" (set dirtowrite="%~4")
- if not "%dirtowrite%" == "None" (call :writedir %dirtowrite%)
- if not "%ret%" == "" (goto :EnOF)
- ::goto :EnOF
- :main
- 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)
- 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,-1%"
- colous Writesec "[%color1%] Et:::ztt33EEE [%color3%]@Ee., .., [7]OS 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] Architecture: [15]%ostype:~0,-1%"
- colous Writesec "[%color2%] ;::::::::zt33) [%color3%]'4EEEtttji3P* [7] Kernel version:[15] %osvers:~0,8%"
- colous Writesec "[%color2%] :t::::::::tt33.[%color4%]:Z3z.. [%color3%]`` [%color4%],..g. [7]Memory:[15] %ram:~0,5% MB"
- colous Writesec "[%color2%] i::::::::zt33F [%color4%]AEEEtttt::::ztF [7]BIOS: [15]%bios:~0,34%"
- colous Writesec "[%color2%] ;:::::::::t33V [%color4%];EEEttttt::::t3 [7]MoBo: [15]%mobo:~0,-1% - %mobomodel:~0,10%"
- colous Writesec "[%color2%] E::::::::zt33L [%color4%]@EEEtttt::::z3F [7]CPU: [15]%cpu:~0,35%"
- colous Writesec "[%color2%] {3=*^```'*4E3) [%color4%];EEEtttt:::::tZ` [7]Primary HDD: [15]%hddsize% Bytes"
- colous Writesec "[%color2%] `[%color4%] :EEEEtttt::::z7 "
- colous Writesec "[%color2%] [%color4%] 'VEzjt:;;z>*` "
- if not "%dirtowrite%" == "None" (
- echo.
- Set /P var=Taking screenshot in 5... <NUL
- timeout /t 1 /nobreak > NUL
- 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 /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 /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 /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 /i "%ostype:~0,3%" == "X64" (nircmd64 savescreenshotfull "%tpath%\%tname%")
- if /i "%ostype:~0,3%" == "X86" (nircmd32 savescreenshotfull "%tpath%\%tname%")
- 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
- if "%~1" == "" (colous Writesec "[4]ERROR: No path or filename defined for '-s'"&set ret=%random%&exit /b)
- 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
- :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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement