This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Recursively deletes empty files and folders. | |
.DESCRIPTION | |
-dir Directory to scan. Defaults to current directory. | |
-test Test mode. No deletions made, only counts displayed. | |
.PARAMETER dir | |
Directory to scan. Defaults to current directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Total Commander portable config file | |
; download installer from: https://www.ghisler.com/download.htm | |
; unpack: tc*.exe /I0".\"RSHG0D0 ".\totalcmd" | |
; replace this wincmd.ini file in unpacked folder | |
[Configuration] | |
1hourdif=1 | |
AdminShares=1 | |
AltSearch=3 | |
AlwaysToRoot=1 | |
AutoInstallPlugins=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uninstall some built-in UWP apps. Tested on Win 10 22H2 and Win 11 24H2 | |
$app2delete = @( | |
# Get list of installed apps: Get-AppxPackage | Select Name, PackageFullName | |
"Microsoft.Copilot", | |
"Microsoft.Windows.DevHome", | |
"Microsoft.549981C3F5F10", # Cortana | |
"Microsoft.WindowsFeedbackHub", | |
"Microsoft.MicrosoftOfficeHub", # Office 365 | |
"microsoft.windowscommunicationsapps", # Outlook (Mail and Calendar) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 1) download and extract https://www.autohotkey.com/download/ahk-v2.zip | |
; 2) place this file near .exe and name the same e.g. AutoHotkey64.ahk | |
; 3) run .exe | |
; Hotstrings: | |
:o:@.::[email protected] | |
::pa.::ping -a | |
:o:pg.::ping google.com -t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Replacing default notepad.exe with your editor | |
:: by t.me/wincmd64 | |
@echo off | |
(Net session >nul 2>&1)&&(cd /d "%~dp0")||(PowerShell start """%~0""" -verb RunAs & Exit /B) | |
:: path to your editor | |
SET "NOTEPAD_PATH=%ProgramFiles%\Notepad++\notepad++.exe" | |
echo. & echo Set "%NOTEPAD_PATH%" as default editor? & echo. & pause | |
:: use "\"%NOTEPAD_PATH%\" /z" for AkelPad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively deletes files older than X days in specified folder | |
# | |
# Example usage: powershell -Ep Bypass clean.ps1 -d 7 -dir "C:\temp" -ext ".tmp .log" | |
# | |
# Parameters (optional): | |
# -d X : Specifies that files older than X days will be deleted; default is 30 | |
# -dir "path" : Specifies the directory to search for files; default is %temp% | |
# -ext ".ext1 .ext2 ..." : Specifies the file extensions to delete | |
# -test : Runs in test mode. No deletions are made — only a count is displayed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Windows quick setup v25.7 | |
:: tested on: Win 11 24H2, Win 10 22H2 | |
:: by t.me/wincmd64 | |
@echo off | |
(Net session >nul 2>&1)&&(cd /d "%~dp0")||(PowerShell start """%~0""" -verb RunAs & Exit /B) | |
:: check win ver | |
for /f %%a in ('powershell.exe -NoP -NoL -NonI -EP Bp -c "(gwmi Win32_OperatingSystem).Caption -Replace '\D'"') do ( | |
if "%%a"=="10" echo. & echo RUN SCRIPT for Windows 10 ? & echo. & pause & echo. & goto 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Downloads video from link in clipboard using yt-dlp (+ ffmpeg) | |
@echo off | |
:: finds the downloads folder | |
for /f "delims=" %%a in ('powershell -command "(New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path"') do set "DOWNLOADS=%%a" | |
:: get value from clipboard | |
for /f "delims=" %%i in ('powershell Get-Clipboard') do set "url=%%i" | |
:: get yt-dlp path | |
for /f "tokens=* delims=" %%a in ('where yt-dlp.exe 2^>nul') do set "app=%%a" | |
if not exist "%app%" (color 4 & echo. & echo yt-dlp not found. Try: winget install yt-dlp.yt-dlp & echo. & pause & exit) else (TITLE %app%) |