You have two problems with the code your using . When using wildcard characters in filename part of from. Then to must be folder. All matching files will be copied to the folder.
also you have invalid filename characters in your date string
these are not allowed in filenames in windows
need to first enumerate to find the file then remove invalid filename characters then can rename
also you have invalid filename characters in your date string
these are not allowed in filenames in windows
- < (less than)
- > (greater than)
- : (colon)
- " (double quote)
- / (forward slash)
- \ (backslash)
- | (vertical bar or pipe)
- ? (question mark)
- * (asterisk)
need to first enumerate to find the file then remove invalid filename characters then can rename