Use a batch to copy a file to all folders under another disk

xiaoxiao2021-04-10  511

Forum forum:

I want to copy the 1.txt under the C disc to the bottom directory under the Music folder under the G drive! ! ! The minimum level directory directory name is different. G: / Music / A / Male / Adu / Adherence to bottom / G: / Music / B / Male / Feng Xiaolu / Tian Shangshi / G: / Music / C / Women / Jolin Tsai / Castle /. . . . G: / music / z / male / Zhou Chuan Xiong (Little Gang) / Men Ocean / This regular! !

The same part of the MUSIC directory is A, B, C ..... I have been to z. There is a man. The woman is the same. The following is a different directory! ! ! How can I write this batch! `` `Thank you;

Think about it, you can solve the following

For / f% i in ('Dir g: / music /*.* / s / b') do @copy c: /1.txt% ~ pi / 1.txt

Use restrictions, no files in the intermediate folder

转载请注明原文地址:https://www.9cbs.com/read-133435.html

New Post(0)