Replacing a file into multiple folders/subdirectories

前端 未结 3 569
遥遥无期
遥遥无期 2020-12-31 05:30

Is there a way in command prompt to take one file and copy it into another folder and its subdirectories based on its name?

I have an image named 5.jpg that has been

3条回答
  •  悲&欢浪女
    2020-12-31 05:50

    Probably there is one more (simpler) way.

    Use the replace command:

    replace C:\SourceFile.Txt C:\Some_Root_Folder_Which_Contains_Multiple_SubFolders /s
    

    As the command itself says it just replaces the file, which already existed in sub-directories.

提交回复
热议问题