lovelace_3_move_converted.bat

user_3364516 avatar
user_3364516
batchfile
03/09/2025 1:31 PM
676 B
20
Indexable
@echo off
set "source=E:\hassio\dailies\scratch"
set "destination=E:\hassio\dailies"

REM Get the current date in YYYYMMDD format
for /F "tokens=1-3 delims=/ " %%a in ('date /T') do set "date=%%b-%%c-%%a"
REM "date=%%c%%b%%a"

REM Create a folder with the current date as the title
mkdir "%destination%\%date%"

REM Move files with "lovelace" in the name to the created folder
move "%source%\*lovelace*" "%destination%\%date%"

echo Files moved to "%destination%\%date%\" folder.





Editor is loading...
Leave a Comment