New
#1
How to copy folders using wildcards
i need to copy folders from one network drive to another drive each night. The structure of the folders are
10a
10b
10c
11a
11b
11c
12a
12b
12c
i only want to copy the folders starting with 12, there will be a random amount of folders created starting with 12 by the end of the year it could be up to 20 folders all starting with 12, i need to use a wildcard so i don't miss any of them. i would like to put the correct process in a batch file if possible but if not i can run each night manually
i can't seem to get this to work with copy , xcopy or robocopy
copy p:\client\12*. z:\clientbak\12*. /s this is an example of what i would like to do with whatever
copy program and with the correct syntax the above doesn't work with xcopy , copy or robocopy