Saturday, June 18, 2011

create and rename name file by date

Create file name by date and time

echo foo > "%DATE:/=-%.txt"

echo foo > "%DATE:/=-%%TIME::=-%.txt"

 

Rename file name by date

ren installedprogs.txt installedprogs_"%DATE:/=-%.txt"

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment