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

前端 未结 6 1044
抹茶落季
抹茶落季 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:29

    FOR /f "tokens=2-4 delims=/ " %%i in ('DATE/T') do SET today_fname=%%i%%j%%k
    cd c:\myfolder\%today_fname%
    REM This creates a folder named 05242016 in c:\myfolder
    

提交回复
热议问题