1.

Solve : determing the creation date of a file in batch?

Answer»

how can you check to see the creation date of a file in a batch PROG?
is it even possible in batch?
plz relpy HI,

I believe 'dir' can do this.

Try 'dir /?' at the command prompt.


Hope it helps.ok that works but how can i get the creation date of a specific file and place it into a variable?Quote from: macdad- on May 27, 2008, 10:30:05 AM

ok that works but how can i get the creation date of a specific file and place it into a variable?

Code: [SELECT]@echo off
set filename=test.txt
for /f %%D in ('dir /B /T:C "%filename%"') do set creation-date=%%~tD
echo %filename% CREATED %creation-date%



thanks Dias


Discussion

No Comment Found