@echo off
set SOURCE=C:\Users\reall\Documents\Work
set TEMP=C:\Users\reall\Documents\TempBackup
set DEST=D:\WorkBackup

if not exist "%TEMP%" mkdir "%TEMP%"
if not exist "%DEST%"

for /f "tokens=1-4 delims=/ " %%a in ('date /t') do set dt=%%d-%%b-%%c
set ZIPFILE=%TEMP%\WorkBackup_%dt%.zip

powershell -Command "Compress-Archive -Path '%SOURCE%\*' -DestinationPath '%ZIPFILE%' -Force"

: : ย้ายไฟล์ ZIP ไป Backup
move "%ZIPFILE%" "%DEST%"

echo Backup สำเร็จ!
pause

mkdir "%DEST%"

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: