How can I move all the files from one folder to another using the command line?

前端 未结 9 1275
北恋
北恋 2020-12-01 02:53

What is the best command to move all files from one folder to another?

I want to do this from within a batch file.

9条回答
  •  独厮守ぢ
    2020-12-01 03:28

    This command will move all the files in originalfolder to destinationfolder.

    MOVE c:\originalfolder\* c:\destinationfolder
    

    (However it wont move any sub-folders to the new location.)

    To lookup the instructions for the MOVE command type this in a windows command prompt:

    MOVE /?
    

提交回复
热议问题