2008年7月19日土曜日

DOS用日付文字列取得方法

備忘録です。


set date=%DATE%
set filename=%date:/=%


で 20080718 の文字列がとれる。

Backupバッチなんかで使えそう。

0 件のコメント: