Example with switches:

We will address all three scenarios in detail.

@echo off set DATE=%date:~-4,4%%date:~-10,2%%date:~-7,2% rar a -r -m5 -agYYYYMMDD "D:\Backups\server_backup_.rar" "C:\ImportantData" echo Backup completed on %DATE% pause

Tel Winrar Official

Example with switches:

We will address all three scenarios in detail. tel winrar

@echo off set DATE=%date:~-4,4%%date:~-10,2%%date:~-7,2% rar a -r -m5 -agYYYYMMDD "D:\Backups\server_backup_.rar" "C:\ImportantData" echo Backup completed on %DATE% pause Example with switches: We will address all three