Dos command compare file dates
You are right that it doesn't matter in this case. In fact if the numbers are very large then it's even a benefit to quote them, when the math limit is exceeded. SecretAgentMan 2, 6 6 gold badges 18 18 silver badges 37 37 bronze badges. Tim Tim 56 2 2 bronze badges. Jon Dresser Jon Dresser 1. It's a user setting. Better use a language independent method to get the date. I create a simple c program i call newest.
Below is the source code. Grog Klingon Grog Klingon 21 2 2 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. I kept playing around with WMIC and couldn't get it too work.
If I typed the line at the command prompt it would work fine. Re: ba 6 Post by aGerman » Mon Nov 24, pm Squashman Did you leave commas or equal signs unescaped or in an unquoted clause? Regards aGerman. Re: Compare timestamps of two files seconds too 7 Post by kadkam » Tue Nov 25, am thanks for attention. I update first post; I need a simple batch that compare timestamps modified date of two files in different folders. Re: Compare timestamps of two files seconds too 9 Post by dbenham » Tue Nov 25, pm Did you even look at my answer Everything you need is right there.
You can include path information with the file name. By locale independent, I mean that it works no matter how your machine is configured to display date and time. Dave Benham. Re: Compare timestamps of two files seconds too 10 Post by kadkam » Wed Nov 26, am Thanks Squash for your "concept", I will study it.
Yes, it I list all in the directory it lists all files date tme. But I'm interested in specific files datetime info and I'd like to compare to find which one is newer. Later I'll use this in batch file. Joined Aug 7, Messages 9, Are both files in the same folder? Also, which time stamp do you wish to compare: Created Modified Last Accessed.
Joined Dec 7, Messages Personally , with all those GNU tools available, this is what i would do eg Code:. Thank you. As Seen On. Welcome to Tech Support Guy! Latest posts F. Driver problem Latest: Sreedharsh 47 minutes ago. M 51 minutes ago. PC Freezes once per days Latest: Macboatmaster 52 minutes ago. Tech-Related News.
Latest: Xylop Today at AM. Windows 7. Staff online.
0コメント