I need to copy the contents of a folder to another folder using a batch file - the problem I'm facing is that one of the parent folders will change every day, being named after today's date. So, for example, I have the following command:
xcopy /Y /S "\\auto-jenkins\Builds\2017\R1\\[0822]\EN\\*.*" "C:\Users\Administrator\Desktop\EN"
This works fine today, unfortunately tomorrow the [0822]
will not exist and the files I need will be under [0823]
. Does anyone know of a way I can use a wildcard in place of [0822]
?
The [08**]
folder will be the only folder below \R1
if that helps...