I'm writing a simple batch file to move, then delete files older than 7 days. Using Robocopy for the move, then using Forfile to search the old files and Del for the deletion of files. My problem is ...
for /f "tokens=1,2,3,4 delims=/ " %%a in ( 'date/t' ) do set y=%%d for /f "tokens=1,2,3,4 delims=/ " %%a in ( 'date/t' ) do set m=%%b for /f "tokens=1,2,3,4 delims ...
You can automate many tasks on your Windows 11 PC using batch files. I’ll explain what a batch file is, how you can create one, and show you some interesting and useful uses of these files. A batch ...
Batch files let you automate tasks, and in this guide, we'll show you how to use them on Windows 10. When you purchase through links on our site, we may earn an affiliate commission. Here’s how it ...