I have a batch file, and i want to make it create a folder with todays date. i do not know how to set folder how i want it
set folder= todays date in format of yyyymmdd
mkdir E:\dbbackups\livedbserver\
testFolder
\"%folder%
"
xcopy D:\Database\backup\testFol
der\*"%fol
der%".* - i want to backup all files which have todays date in their name
E:\dbbackups\livedbserver\
testFolder
\"%folder%
"
instead of this, i want to backup only files which have todays date in them, for example today is 20080430. so i want to back up files with that in them, like in sql you use like.. i dont know how you do it in batch files.
how do i achieve this?
thanks for your help, code snippet is preferred
regards
Start Free Trial