Windows 創建當天目錄

if not exist %date:~0,4%-%date:~5,2%-%date:~8,2% (md %date:~0,4%-%date:~5,2%-%date:~8,2%)

假設目錄不存在,則創建目錄
目錄名稱 西元年-月-日 (Ex. 2013-06-18)

:~0,4 ==> 類似substr的功用

This entry was posted in Windows. Bookmark the permalink.