Return a date/time stamp

August 22, 2011 at 09:44:22
Specs: Windows XP
Is there away (using Windows batch scripting) to return the time / date stamp value of a particular file.

Maybe like this:

dir /od > c:\temp\time-date-out.xt
then grep -I for ":" (colon) which should be there in the time field…. then using tokens to return the yyyy-mm-dd hh:mm values… search some of my batch files or on the Internet for for /f tokens, that will tell you how it's done. Once the variables are set, then perhaps we can compare to the file that's already there. Not sure.


See More: Return a date/time stamp

Report •

#1
August 26, 2011 at 20:37:48
Is there away....................search some of my batch files or on the Internet for for /f tokens, that will tell you how it's done.

Is there an unanswered question somewhere in there?


Please come back & tell us if your problem is resolved.


Report •
Related Solutions


Ask Question