I'm trying to execute a command for every folder with the name "day*".
The following is my code:
FOR /D [/r] %%G IN (\tool\%server%\%day*) DO (
***code to copy and paste from one folder to another***
)
My computer gives me the following errors:
[/r] was unexpected at this time
when I tried removing [/r]
%%G was unexpected at this time