This file contains 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 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}` |
This file contains 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 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:\' |
This file contains 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 | |
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" |
This file contains 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 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 |
This file contains 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 (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 |
This file contains 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
:: 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 |
This file contains 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
:: ПАКЕТНАЯ КОНВЕРТАЦИЯ ВИДЕОФАЙЛОВ С ПОМОЩЬЮ ПРЕСЕТОВ 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) |
This file contains 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
:: Get direct links to latest Google Chrome offline installers for Windows 7 | |
:: (required powershell 5x -- https://microsoft.com/download/details.aspx?id=54616) | |
:: https://t.me/wincmd64 | |
@echo off | |
echo WORKING... | |
(echo ^<?xml version="1.0" encoding="UTF-8"?^> ^<request protocol="3.0" ismachine="1" installsource="ondemand" dedup="cr"^> ^<hw physmemory="4" sse3="1"/^> ^<os platform="win" version="7.0" arch="x86"/^> ^<app appid="{8A69D345-D564-463C-AFF1-A69D9E530F96}" release_channel="stable" ap=""^>^<updatecheck/^>^</app^> ^</request^> )>"%temp%\in32.xml" | |
(echo ^<?xml version="1.0" encoding="UTF-8"?^> ^<request protocol="3.0" ismachine="1" installsource="ondemand" dedup="cr"^> ^<hw physmemory="4" sse3="1"/^> ^<os platform="win" version="7.0" arch="x64"/^> ^<app appid="{8A69D345-D564-463C-AFF1-A69D9E530F96}" release_channel="stable" ap=""^>^<updatecheck/^>^</app^> ^</request^> )>"%temp%\in64.xml" | |
FOR /F "eol=; tokens=1,2* delims= usebackq" %%i in (`@powershell -Command " Invoke-WebRequest -Uri 'https://tools.goo |
This file contains 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 | |
:: 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 |