![]() ![]() The %Date% variable will give you “Fri ”. The %Time% variable in a batch file will give you a time like 18:55:30.32 I’ll explain why it looks more complicated than you (and I) might have thought it should be afterwards. The first part is the year then month then date followed by an underscore the hour then minutes then seconds.įor the impatient out there here is the final code I use to get this date and time stamp: ![]() What I wanted to end up with is something like 20110211_185530.zip. One of the things that’s given me troubles is using dates and times to add to folders or file names to help with organizing. I’ve lately been using batch files more and more to do backups and other things.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |