make batch file that creates a folder with today's date then moves files from a folder in to that newly created folder

前端 未结 6 992
抹茶落季
抹茶落季 2021-01-06 09:56

I need to make a batch file that will make a folder with today\'s date in month day year format (example 080112). Then once it\'s created i need to move files from a set fol

6条回答
  •  醉梦人生
    2021-01-06 10:34

    Just rename the folder with Erik's suggestion:

    move FolderName FolderName_%date:~7,2%%date:~4,2%%date:~12,4%
    

提交回复
热议问题