Current Month, Day, Year in Batch Files (Windows/DOS)

FOR /F “tokens=2-4 delims=/-/ ” %%A IN (“%date%”) DO (
SET cwMonth=%%A
SET cwDay=%%B
SET cwYear=%%C
)

No Comments Posted in Tech Support
Tagged ,

Leave a Reply

You must be logged in to post a comment.

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>