Skip to content

Instantly share code, notes, and snippets.

:: Downloads video from link in clipboard using yt-dlp and ffmpeg
:: yt-dlp.exe -- https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
:: ffmpeg.exe -- https://github.com/GyanD/codexffmpeg/releases/download/6.1.1/ffmpeg-6.1.1-essentials_build.7z
:: https://t.me/wincmd64
@echo off
:: finds the downloads folder
FOR /F "USEBACKQ TOKENS=2,*" %%a IN (
`REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V {374DE290-123F-4565-9164-39C4925E467B}`
:: Windows 10\11 quick setup v24.6
:: https://t.me/wincmd64
@ECHO OFF & CLS & ECHO.
NET FILE 1>NUL 2>NUL & IF ERRORLEVEL 1 (ECHO You must right-click and select & ECHO "RUN AS ADMINISTRATOR" to run this batch. Exiting... & ECHO. & Timeout /t 10 & EXIT /B)
:: check win ver
>nul 2>&1 (copy /l nul nul && cmd.exe /e:on /c for /f "delims=[ tokens=2" %%A in ('ver'^) do for /f "tokens=2,3 delims=. " %%B in ("%%A"^) do if 10 gtr %%B if %%B==6 if 4 gtr %%C call) && echo RUN SCRIPT ? && echo. || color 4 && echo The detected system is older than Windows 10. && echo STILL RUN THE SCRIPT ? && echo.
pause
echo Создание точки восстановления...
powershell Enable-Computerrestore -drive 'C:\'
<#
.SYNOPSIS
alternative way to update TotalCmd with selected installer
.DESCRIPTION
in this example, all language packs will be updated
and junk files (like 'SIZE!.TXT' or '*.WUL') will not be copied
.EXAMPLE
powershell -ExecutionPolicy Bypass -File "TCupdate.ps1" "x:\path to\totalcmd"
:: Windows 7 quick setup
:: The encoding of this file must be OEM 866
:: https://t.me/wincmd64
:: Tested on: https://nnmclub.to/forum/tracker.php?pid=1428251
:: Drivers can be found at: https://sdi-tool.org
@echo off
:: UAC check
# Recursively deletes files older than X days (bypassing the Recycle Bin) in specified folder
# by https://t.me/wincmd64
# User variables
$test = 1 # TEST MODE. Set to 0 for real deleting!
$dir = "$env:TEMP" # Folder to search files
$days = 7 # Older than day(s)
$log_file = "$PSScriptRoot\clean.log" # Path to log file
# Logging timestamp
:: Adds the "Emsisoft Scanner" item to the files and folders menu
:: https://t.me/wincmd64
:: USAGE:
:: 1. Download and unpack: https://www.emsisoft.com/en/commandline-scanner/
:: for x64 -- https://dl.emsisoft.com/EmsisoftCommandlineScanner64.exe
:: for x32 -- https://dl.emsisoft.com/EmsisoftCommandlineScanner32.exe
:: 2. Add the unpacked directory to PATH
:: 3. Put this file in unpacked directory and run
:: ПАКЕТНАЯ КОНВЕРТАЦИЯ ВИДЕОФАЙЛОВ С ПОМОЩЬЮ ПРЕСЕТОВ HANDBRAKE
:: by https://t.me/wincmd64
:: ИСПОЛЬЗОВАНИЕ:
:: 1. создать ярлык на этот .bat-файл в папке Shell:SendTo (либо кнопкой в TotalCmd с параметром %P%S)
:: 2. выделить нужные видеофайлы и выбрать в контекстном меню пункт Отправить > *имя_ярлыка*
:: 3. ввести нужное название пресета из https://handbrake.fr/docs/en/1.6.0/technical/official-presets.html
:: HandBrakeCLI.exe должен быть в PATH (winget install HandBrake.HandBrake.CLI)
:: либо рядом с .bat (https://handbrake.fr/downloads2.php)
:: Replacing default notepad.exe with your editor
:: https://t.me/wincmd64
@ECHO OFF & CLS & ECHO.
NET FILE 1>NUL 2>NUL & IF ERRORLEVEL 1 (ECHO You must right-click and select & ECHO "RUN AS ADMINISTRATOR" to run this batch. Exiting... & ECHO. & Timeout /t 10 & EXIT /B)
:: path to your editor
SET "NOTEPAD_PATH=%ProgramFiles%\Notepad++\notepad++.exe"
echo Set "%NOTEPAD_PATH%" as default editor?
pause