Windows XP Output Date Created and Date Modified to a txt file using a batch file

Joined
Sep 12, 2009
Messages
1
Reaction score
0
Can anyone help me please.
I want to create a batch file that will display both the date modified and date created of some folders including its subfolders and files and output the result to a txt file.
This is what I made but it does not show both the date modified and date created.

@echo off

rem echo. ------------------------ DATE CREATED & DATE MODIFIED------------------------ >> "C:\Documents and Settings\administrator\Desktop\dir.txt"

dir /t:c /t:w /s /q "C:\Documents and Settings\administrator\Desktop\fileinfo_test" >> "C:\Documents and Settings\administrator\Desktop\dir.txt"
pause
exit/b


can somebody help me please.
thank you very much in advance..

mhel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top