I have a folder repeated in all partitions, with the same name but different contents. I need to copy these folders to another partition in a few lines of code, but not once for each partition, such as
Xcopy c:\userroot\storage G:\backup\
This would need to be repeated for many partitions: C D E F H I..... Many lines. Can't I condense these lines into one, or two at most?
FOR
construct with variable substitution. I have never been able to wrap my head around Microsoft'sFOR
syntax, though. You will need to know the list of partitions you want to copy the directory to, but it should reduce what you want to do to a single command line.