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

前端 未结 24 1304
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  旧时难觅i
    2020-12-08 02:54

    G:
    
    cd G:/app/
    
    mkdir %date:~7,2%%date:~-10,2%%date:~-4,4% 
    
    cd %date:~7,2%%date:~-10,2%%date:~-4,4% 
    
    sqlplus sys/sys as sysdba @c:/new
    

提交回复
热议问题