Batch file to create Folder based on Date and Copy Files from One Location to Another Location?

前端 未结 1 681
轮回少年
轮回少年 2021-01-13 15:14

I want to Copy/Move files in Windows XP from Desktop(a Folder) to My Document(another Folder), which was created by same Batch File on Current Date in Format DD/MM/YYYY.

1条回答
  •  天涯浪人
    2021-01-13 15:35

    Try putting lines that has file/folder names with spaces in quotes e.g. update this line

    mkdir %USERPROFILE%\My Documents\%date%
    

    to

    mkdir "%USERPROFILE%\My Documents\%date%"
    

    0 讨论(0)
提交回复
热议问题