WiredWX Christian Hobby Weather Tools
Would you like to react to this message? Create an account in a few clicks or log in to continue.

WiredWX Christian Hobby Weather ToolsLog in

 


descriptionDisplay The Windows Version On Your Desktop EmptyDisplay The Windows Version On Your Desktop

more_horiz
Display The Windows Version On Your Desktop
This batch script allows you to display the Windows OS edition, build information on your desktop, at a glance without opening System Properties.

Display The Windows Version On Your Desktop SjMjdFT

Code:

@Echo Off
Title GEEKPOLICE & Color 1A

Cd %systemroot%\system32


REM  --> Check for permissions
Reg query "HKU\S-1-5-19\Environment"
REM --> If error flag set, we do not have admin.
if %errorlevel% NEQ 0 (
ECHO                 **************************************
ECHO                  Running Admin shell... Please wait...
ECHO                 **************************************

    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params = "%*:"=""
    echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B


:gotAdmin

Cls & Mode CON  LINES=11 COLS=80 & Color 0D & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo       º Do You Want To Display The Windows Version On Your Desktop (Y/N)? º  
Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
Echo.
Echo.


Set /p input= RESPONSE:

If /i  Not %input%==Y (Goto :_Ex) Else (Goto :_Start)

:_Ex
If /i Not %input%==N  (Goto :EOF) Else (Goto :_RegRestore)



:_Start

Reg Add "HKEY_CURRENT_USER\Control panel\Desktop" /v "PaintDesktopVersion" /t REG_DWORD /d 1  /f

Cls & Mode CON  LINES=11 COLS=70 & Color 0D & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo       º  Displaying The Windows Version On Your Desktop Enabled º  
Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
Echo.
Echo.

Taskkill /im Explorer.exe /f >Nul

Start Explorer.exe

ping -n 6 localhost >Nul
Exit


:_RegRestore

Reg Query "HKEY_CURRENT_USER\Control panel\Desktop" /v "PaintDesktopVersion"

If %ErrorLevel% EQU 1 Goto :EOF

Reg Add "HKEY_CURRENT_USER\Control panel\Desktop" /v "PaintDesktopVersion" /t REG_DWORD /d 0  /f


Cls & Mode CON  LINES=11 COLS=70 & Color 0D & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo       º Displaying The Windows Version On Your Desktop Diabled  º  
Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
Echo.
Echo.

Taskkill /im Explorer.exe /f >Nul

Start Explorer.exe

ping -n 6 localhost >nul
Exit



Please copy/paste batch script codes to a Notepad and name it as PaintDesktopVersion.bat.


Last edited by FreeBooter on 7th February 2017, 10:50 pm; edited 1 time in total

............................................................................................

FreeBooter
Display The Windows Version On Your Desktop 1363

Co-Administrator

descriptionDisplay The Windows Version On Your Desktop EmptyRe: Display The Windows Version On Your Desktop

more_horiz
I use the Windows key + R.  Then type in Winver and hit the Enter key.
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum