Skip to content

Instantly share code, notes, and snippets.

AveYo / Pitch Black Theme.reg
Last active Jan 30, 2023
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 / 7-Zip_Windows11.reg
Last active Sep 21, 2022
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 / ..runasTI.bat
Last active Dec 16, 2022
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 / win10colors.cmd
Last active Feb 18, 2022 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
View win10colors.cmd
@echo off
title Windows 10 native ANSI colors fast and compact macro setup by AveYo - just replace ECHO with %%@%% and ^<ESC^> with @
:: Initiate macro just once
call :@echo
:: [screenonly] [processed escape sequences]
%@% @^^[101;93m @[101;93m STYLES
%@% @^^[0m @[0m Reset
%@% @^^[1m @[1m Bold
%@% @^^[4m @[4m Underline
AveYo / .. MediaCreationTool.bat
Last active Feb 3, 2023
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO
View .. MediaCreationTool.bat
AveYo / .FreeStandbyMemory.bat
Last active Jul 30, 2022
FreeStandbyMemory.bat - ninja edits at
View .FreeStandbyMemory.bat
/* 2>nul || title FreeStandbyMemory.bat by AveYo v2019.06.01
@echo off|| csc compiling snippet, advanced schedule, builtin add_remove - UPDATE: reliable free memory detection
:: check_admin_rights
reg query "HKEY_USERS\S-1-5-20\Environment" /v TEMP >nul 2>nul || (
color 0e & echo. & echo PERMISSION DENIED! Right-click %~nx0 ^& Run as administrator
View products_2018_10_02.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>=
<PublishedMedia id="2072" release="20181002 RS5 RTM WU">
<File id="470474">
<Language>Chinese Simplified</Language>
AveYo / .Close_Handles_ContextMenu.bat
Last active Aug 19, 2022
'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 Aug 5, 2022
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=&amp;"
;> "%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 / !WebSearchChoice.bat
Last active Oct 2, 2021
Web Search Choice for Cortana - direct input to console fixed!
View !WebSearchChoice.bat
@echo off &title WebSearchChoice
set "browser=iexplore.exe"
set ""
echo Will override Cortana search Edge browser with: %browser%
set/p "browser_choice=-Enter new choice, or press Enter to use above: "
if "%browser_choice%"=="0" goto uninstall