lovelace_3_move_converted.bat
@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