Switching between Light and Dark modes in Windows 11 can be done via the Settings app, but the process requires navigating through menus and clicking multiple options, a bit tedious if you switch frequently. While this may not be an issue for most users, it can be a hassle if you prefer a simpler way.
In this tutorial, I will show you the steps to create a batch file to toggle between Light and Dark modes with just a double-click. This a perfect solution for those who prefer a quicker method to switch between light and dark modes on Windows 11. Let’s get started.
Steps Switch Between Light & Dark Mode with a Double-Click
To quickly switch between light and dark mode on Windows 11, we will create two batch files called light mode and dark mode. Double-clicking the batch file instantly switches the mode. Here’s how to do it.
First, open the Start menu by pressing the “Windows key” on your keyboard. Next, type “Notepad” and click “Open” to open the Notepad application.

In the Notepad app, paste the following batch script:
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d 0 /f
echo Dark Mode Enabled
pause

Click the “File” > “Save As” option.

Go to where you want to save the file, type “switch to dark mode.bat” in the “File name” field, select “All files” from the “File type” dropdown menu, and click “Save“.

Now, go back to the Notepad. Delete the existing script. Paste the following script:
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d 1 /f
echo Light Mode Enabled
pause

Click the “File” > “Save as” option or press the “Ctrl + Shift + S” shortcut.

Go to where you want to save the file, type “switch to light mode.bat” in the “File name” field, select “All files” from the “File type” dropdown menu, and click “Save“.

That is it. Close the Notepad window.
From now on, whenever you want to switch to dark mode, double-click the “switch to dark mode.bat” file, and to switch to light mode, double-click on the “switch to light mode.bat” file. It’s that simple.

If you have any questions or need help, comment below. I’ll be happy to help.