recursive move command on windows

前端 未结 6 1695
暖寄归人
暖寄归人 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 15:53

    XCOPY should do the trick, I use it it in batch files all the time

    something like, if you're just trying to target .sh files

    XCOPY /E /H /Y /C "%SOURCEDIR%\*.sh" "%TARGETDIR%"  
    

    Let me know if you have more questions

提交回复
热议问题