recursive move command on windows

前端 未结 6 1535
暖寄归人
暖寄归人 2021-02-14 15:25

I need to do a .bat copy of a .sh, I don\'t know much Windows cmd. On Linux I could do

mv ...

or

rsync -a SOURCE/ DEST/ --remov         


        
6条回答
  •  礼貌的吻别
    2021-02-14 16:06

    @echo off
    setlocal
    set DIR=
    set OUTPUTDIR=C:\Documents and Settings\\Desktop\sandbox1\output
    for /R %DIR% %%a in (*.jpg) do xcopy "%%a" "%OUTPUTDIR%"
    

提交回复
热议问题