Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Realize dark mode switch with a batch file?


Why not simply implement the dark mode in Microsoft Windows 11 or 10 with a batch file at the push of a button and without an administrator query

Everyone knows the time-consuming procedure ►► to activate the dark mode under Windows 11/10 via the registry. But why not even faster, more logical and easier!

 
Contents:

1.) ... The batch file dark mode on and off!
2.) ... More tips on dark mode on MS Windows 11 and 10 OS!




1.) The batch file turns dark mode on and off!

Create an empty Dark-Mode-Switch.bat on the desktop and use the following script, just copy / paste it!

Or download: ►►  Dark-Mode-On-Off.zip

Dark-Mode-Switch.bat


set KEY_NAME="HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"

echo query is dark or not

FOR /F "usebackq tokens=3*" %%A IN (`REG QUERY %KEY_NAME% /v AppsUseLightTheme`) DO (
set is_dark=%%A %%B
)

echo activate if yes and vice versa

if %is_dark% EQU 0x1 (
reg add %KEY_NAME% /v AppsUseLightTheme /t REG_DWORD /d 0 /f
) else (
reg add %KEY_NAME% /v AppsUseLightTheme /t REG_DWORD /d 1 /f
)


echo %is_dark%

echo pause can be removed (waiting for keypress) pause

pause



If you run the  Dark-Mode-Switch.bat  , it will be deactivated when dark mode is active and vice versa, which is quite practical for those who have a great need to constantly change the mode. Or test its software in different modes!

2.) More tips on dark mode on MS Windows 11 and 10 OS!


►► Quickly switch to night mode on Windows 11
►► How to enable dark mode in Windows 11?
►► Activate the dark mode under Windows 11/10 via the registry
►► Activate screen brighter or darker under Windows 11








FAQ 145: Updated on: 21 July 2022 19:58 Windows
Windows-Console

Is there a list of WMIC commands on MS Windows?


It is quite easy to have the MMIC commands listed on all Microsoft Windows desktop and MS servers and to obtain further information WMIC is deprecated The
Windows-Console

How and why do command lines work in CMD.EXE?


The command line in CMD.EXE, often also called console or terminal, is a text-based interface within the operating system that can make things a lot easier
Windows-Console

Schedule a webpage to open via the command prompt?


On MS Windows operating systems you can use SCHTASK to open a web page at a specific time, why not when its so easy Here are a few examples for the time-controlled
Windows-Console

Batch job file to cancel print jobs?


Looking for a batch job file to cancel print jobs, youve finally arrived at the problem solving point and you can create or download it Contents: 1.
Windows-Console

Clear clipboard via command prompt!


If for some reason you want to clear clipboard from Command Prompt, you can try this command as a solution Contents: 1. Delete the clipboard via the
Windows-Console

Fast start for cmd.exe (Windows Console)?


The fastest way to run or start the command prompt in every Windows System, is via RUN-Dialog in Windows 11, 10, and MS Server. Please start via Keyboard-Shortcut

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, console, realize, dark, mode, switch, with, batch, file, simply, implement, microsoft, push, button, without, administrator, query, everyone, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + DontSleep
  + ExperienceIndexOK
  + QuickTextPaste
  + DesktopNoteOK
  + ShortDoorNote
  + AutoHideDesktopIcons
  + BlankAndSecure
  + AlwaysMouseWheel
  + NewFileTime
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.062


► Reset standard fonts for programs to default in Windows 7, how to? ◄

► What is a desktop, with an example? ◄

► Windows 11, 10 File Explorer does not remember the selected objects when navigating! ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....