Windows batch script to move files

后端 未结 4 2122
滥情空心
滥情空心 2021-02-20 00:40

I need to move files from one directory to another in windows, and I need to write this in a batch script.

We have written a SQL job where backup files will be created e

4条回答
  •  面向向阳花
    2021-02-20 01:05

    move c:\Sourcefoldernam\*.* e:\destinationFolder
    

    ^ This did not work for me for some reason

    But when I tried using quotation marks, it suddenly worked:

    move "c:\Sourcefoldernam\*.*" "e:\destinationFolder"
    

    I think its because my directory had spaces in one of the folders. So if it doesn't work for you, try with quotation marks!

提交回复
热议问题