Skip to content

Instantly share code, notes, and snippets.

AveYo / Pitch Black Theme.reg
Last active March 26, 2023 13:10
Pitch Black Theme.reg - now for Ctrl+Alt+Del (and logon on 11) as well - revised 2022-06-16
View Pitch Black Theme.reg
Windows Registry Editor Version 5.00
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11)
; revised 2022-06-16: show active taskbar button in accent color
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10
AveYo / .. MediaCreationTool.bat
Last active March 26, 2023 13:01
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO
View .. MediaCreationTool.bat
AveYo / 7-Zip_Windows11.reg
Last active March 12, 2023 08:25
7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
View 7-Zip_Windows11.reg
Windows Registry Editor Version 5.00
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
; Add to archive.. only single files (multiple would need a single instance redirect tool)
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
AveYo / multiple_gui_choices.bat
Last active March 2, 2023 20:10
Simple GUI helpers for batch files
View multiple_gui_choices.bat
@echo off &title Multiple GUI choices via powershell snippet by AveYo &rem preview:
:: setup gui dialog choices
set all_choices=Option 1,Option 2,Option 3,Option4,Option5
set def_choices=Option 1,Option 2,Option5
:: Show gui dialog choices 1=title 2=all_choices 3=def_choices 4=output_variable
call :choices "Multiple GUI choices" "%all_choices%" "%def_choices%" CHOICES
:: Quit if no choice selected
if not defined CHOICES color 0c &echo ERROR! No choice selected.. &timeout /t 20 &color 07 &exit/b
:: Print choices
echo Choices: %CHOICES% & echo.
AveYo / !
Last active February 27, 2023 04:14
A High Contrast based neutral / less blues tone Windows Dark / Light Theme by AveYo
AveYo / ..runasTI.bat
Last active December 16, 2022 04:39
Lean and Mean runas TrustedInstaller / System compact snippet to easily integrate in your batch scripts
View ..runasTI.bat
@echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2022
goto :nfo
- innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile
- sets ownership privileges, high priority, and explorer support; get System if TI unavailable
- accepts special characters in paths for which default run as administrator fails
- adds Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer
- First copy-paste RunAsTI snippet after .bat script content
- Then call it anywhere to launch programs with arguments as TI
AveYo / .Close_Handles_ContextMenu.bat
Last active August 19, 2022 21:55
'Close Handles' context menu to unlock files or folders -
View .Close_Handles_ContextMenu.bat
@echo off &Title 'Close Handles' context menu to unlock files or folders by AveYo v2019.09.27
:: changelog: fix dl; add /accepteula; check S-1-5-19 for admin; ask for admin rights to catch system handles; auto-hide window
:: add_remove whenever script is run again
reg query "HKCU\Software\Classes\Directory\shell\CloseHandles" /v MuiVerb >nul 2>nul && (
reg delete HKCU\Software\Classes\Directory\shell\CloseHandles /f >nul 2>nul
reg delete HKCU\Software\Classes\Drive\shell\CloseHandles /f >nul 2>nul
reg delete HKCU\Software\Classes\*\shell\CloseHandles /f >nul 2>nul
color 0c &echo. &echo REMOVED! Run script again to add 'Close Handles' context menu
timeout /t -1 &color 0f &title %COMSPEC% &exit/b
AveYo / .Files.bat
Last active August 5, 2022 12:43
Files.html listing from directory context-menu ( or simpler, but less fancy Files.xml )
View .Files.bat
;@echo off &title Files.html listing from directory context-menu by AveYo v1.0
;if not exist "%~1" ( goto :setup ) else pushd "%~1\.." &echo Listing "%~1" - please wait... &set "fn=%~nx1 Files.html"
;del /f/q "%fn%" >nul 2>nul &cd.>"%fn%" 2>nul
;if exist "%fn%" ( set "files=%CD%\%fn%" ) else set "files=%USERPROFILE%\Desktop\%fn%"
;pushd "%~1"
;set "ampersand=&" &set "escape=&"
;> "%files%" findstr -bv ; "%~f0"
;>>"%files%" echo ^<p^>%DATE%, %TIME%^</p^>^<div class="filetree"^>
;>>"%files%" <nul set/p="<ul class="main-tree"><li class="tree-title">%~1</li>"
;>>"%files%" echo.
AveYo / @ batch scripts for power
Last active August 4, 2022 10:12
Windows batch scripts for power users
View @ batch scripts for power

windows_update_toggle.bat v10.1 final
~ one script to rule them all!
~ block build upgrades and/or automatic updates without breawking Store downloads and Defender protection updates
~ there is a lot of focus on Defender updates working independently, unlike any other updates "management" solution
~ ifeo safe blocking with no destructive changes of ownership, deleting files, removing tasks, or over-blocking
~ toggle everything from the Desktop right-click context menu!
but wait, there is more:
~ hide/unhide/install update lists with counter at the Desktop right-click context menu!

Previous update toggle batch suite scripts have been overwritten on pastebin, but will still be available here:

AveYo / .Classic-Shell or Open-Shell StartMenu optimized
Last active August 4, 2022 07:31
Classic-Shell or Open-Shell StartMenu optimized settings.xml
View .Classic-Shell or Open-Shell StartMenu optimized

Does this still work under Windows 11?
Yes, it does!
Tho it won't alleviate the horrible taskbar changes
So I propose using RetroBar: & my RetroBar dark theme: ShittyDark v2 Both can coexist and work great in this proposed setup

windows 11 preview - with RetroBar

OpenShell setup and import settings