Below is the script.I am copying files based on date given by user.
@echo off
echo Enter Date in mm-dd-yyyy:
set /p dt=
echo %dt%
if %dt% =="" goto :EnterDate
if not %dt% =="" goto :CopyFile
:CopyFile
xcopy C:\Users\hkum29\Desktop\Source\*.* C:\Users\hkum29\Desktop\Destination\*.* /d:%dt%
:EnterDate
echo Enter Date
Pause