batch file Copy files with certain extensions from multiple directories into one directory

后端 未结 5 1400
别那么骄傲
别那么骄傲 2020-11-30 19:33

I\'m a newbie, so bear with me...

I am trying to copy all .doc files that I have scattered throughout several subdirectories of one main directory into

5条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 20:29

    Things like these are why I switched to Powershell. Try it out, it's fun:

    Get-ChildItem -Recurse -Include *.doc | % {
        Copy-Item $_.FullName -destination x:\destination
    }
    

提交回复
热议问题