I want to copy file to another place using copy command and save it with the name of system date. But the execution shows zero files copied. Please help me find the error.
@echo off
:: variables
set hour=%time:~0,2%
if "%hour:~0,1%"==" " set hour=0%time:~1,1%
set name=%date:~10,4%_%date:~4,2%_%date:~7,2%_%hour%_%time:~3,2%
set source=C:\abc.jpg
set desitination=C:\%name%.jpg
set backupcmd=copy /V /-Y
echo Copying up downloaded file...
%backupcmd% "%source%" "%destination%"
echo Copying Complete!
@pause
Bookmarks