Is there a way to retreive the "Date Modified" of a file through a .bat or .cmd file ?
Could someone show me an example ?
Page 1 of 1
How to retreive "Date Modified" in .cmd file? .bat or .cmd
#2
Posted 07 January 2004 - 06:35 AM
DIR /TW c:\file.ext
You can use a FOR statement to disect it
C:\>for /f "tokens=1" %%i IN ('dir /tw file.ext ^| find /i "file.ext"') do echo %%i
Enjoy!
(remember, variables in batch files for a FOR statement have double % ie:'%%i' where as from a cmd prompt it's single % ie:'%i')
- ← Customization of context menu in IE design mode.
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- [vb] Give Your App The XP Theme →
Share this topic:
Page 1 of 1



Help
Back to top








