木曜日, 8月 17, 2006
[Windows]バッチなど
▼質問
バッチ・ファイルで日付を取得して、ファイル名で使用したいときはどうするの?
▼回答
【@IT:Windows TIPS -- Tips:バッチ・ファイル中で日付をファイル名に使用する】
http://www.atmarkit.co.jp/fwin2k/win2ktips/419batchdate/batchdate.html
%date:~0,4%%date:~5,2%%date:~8,2%
図式表示されたディレクトリ構造を出力する。
tree > D:\Tree\tree%date:~0,4%%date:~5,2%%date:~8,2%.txt
バッチ・ファイルで日付を取得して、ファイル名で使用したいときはどうするの?
▼回答
【@IT:Windows TIPS -- Tips:バッチ・ファイル中で日付をファイル名に使用する】
http://www.atmarkit.co.jp/fwin2k/win2ktips/419batchdate/batchdate.html
%date:~0,4%%date:~5,2%%date:~8,2%
図式表示されたディレクトリ構造を出力する。
tree > D:\Tree\tree%date:~0,4%%date:~5,2%%date:~8,2%.txt