How to create a folder with name as current date in batch (.bat) files

前端 未结 24 1260
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 02:26

I don\'t know much about windows .bat file syntax. My simple requirement is to create a folder at a specific location with name as current date. I tried searching this on go

24条回答
  •  死守一世寂寞
    2020-12-08 02:50

    You'll like this, change it so that it can suit your requirements.

    mkdir today
    Copy Desktop\test1\*.* today
    setlocal enableextensions
    set name=%DATE:/=_%
    Rename "today" _OlddatabaseBackup_"%name%"
    

提交回复
热议问题