0

I have a folder structure like this:

Source

C:\Data
        Data1_timestamp
        Data2_timestamp
        Data3_timestamp
        Data4_timestamp

Destination

D:\Data
        Data1
        Data2
        Data3
        Data4

Is it possible to use robocopy to copy each source subfolder to the corresponding destination subfolder (eg. Data1_timestamp would be copied to Data1, Data2_timestamp to Data2 etc)

Destination after the copy

D:\Data
        Data1\Data1_timestamp
        Data2\Data2_timestamp
        Data3\Data3_timestamp
        Data4\Data4_timestamp
Anonimista
  • 103
  • 2

1 Answers1

0

No, but you could carry this out with a combination of a for command and robocopy. Plus a bit of a substring operation using %MYVAR:~0,5%

Simon Catlin
  • 5,222
  • 3
  • 16
  • 20