SET dd=%date% %Time%
SET today=%dd:~4,2%
SET post=.%dd:~7,2%.%dd:~12,2%
SET /A ex1=%today%-1
SET ex2=%ex1%%post%
XCOPY "%HOMEDRIVE%%HOMEPATH%\Documents\My Dropbox\server\Mysql Backup\85 OS*%ex2% 23.5*\*.*" C:\xampp\mysql\data\serverT\ /S
What I'm trying to do, is grab all the files in a directory that is created daily with a timestamp. the SET /A ex1=%today%-1 minuses the current day by 1, making it yesterday. then I use the variables created beforehand in a xcopy command, I'm getting problems though, it seems to want to use the wildcards "*" as an actual part of the file name, that is not at all what I figured wildcards were meant to do. But it looks for "85 OS*6.06.10 23.5*\*.*" Am I missing something?
File not found - *.*
0 File(s) copied