Answer the question
In order to leave comments, you need to log in
How to find the creation date of a file in bat?
Tell me how you can find out the creation date of a file in BAT.
for has a %%~ti variable, but it only points to the modification date of the file. How can I find out the creation date of a file?
Answer the question
In order to leave comments, you need to log in
Earned as follows
FOR /f "usebackq tokens=1,2,3,* delims= " %%a IN (`dir /-c /tc "%%f"`) DO IF "%%d" == "%%~nf%%~xf" ECHO %%a >> "%~2"
you can, for example, extract from here:
dir 123.txt /T:C покажет дату создания.
dir 123.txt /T:W покажет дату изменения.
(Get-Item .\123.txt).CreationTime
(Get-Item .\123.txt).LastWriteTime
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question