UPDATED ON: 2025-05-06
Today is the lazy monday, so nothing complex at this time. Just a simple backup procedure of copying the appointed folder to a specific place in a 7z archive with a current date name with archive validation upon completion. To make things rollin’ of course you should have 7z software installed on your `puter.
@echo off
setlocal enableextensions enableddelayeexpansion
set "source=C:\Projects"
set "dest=E:\Backups"
:: splitting %DATE% into MM/DD/YYYY parts, this part was a bitch to implement
for /F "tokens=1-3 delims=/.
When doing webdev tasks, I often run into situations where browsers start to glitch due to a stuck cache. Page elements do not being update properly and reload [F5] or even magic [CTRL+F5] does not work at all. Here are two simple batch scripts to hard reset the system cache for Firefox and Chrome based browsers.
@echo off
taskkill /IM chrome.exe /F >nul 2>&1 || echo Chrome is not running
timeout /t 2 /nobreak >nul
rmdir /s /q "C:\Users\YOUR-PROFILE-NAME\AppData\Local\Supermium\User Data\Default\Code Cache"
rmdir /s /q "C:\Users\YOUR-PROFILE-NAME\AppData\Local\Supermium\User Data\Default\Cache"
start "" "%ProgramFiles%\Supermium\chrome.
This script collects all MP4 video files located in D:\Videos [including subfolders], that where created or modified today and copies them to all connected flash drives.
3,4,5 flash drives? Software doesn’t care about the number of connected sticks.
Before copying it creates two lists in the Temp system folder: matching files and available flash drives. When the copy is complete, it beeps through the speakers via standard WAV and displays the GUI report window.