I am learning to write batch files scripts and to do this I am trying to create a batch script that asks for a path and iterates over each file, getting its creation date and renaming the file.
Right now I am able to iterate and echo the file name like this:
@echo off
set /p path="Enter the folder path: "
for /f "usebackq delims=|" %%f in (`dir /b %path%`) do (
echo %%f
)
pause
Now, the next step: How can I get the creation date from %%f? I am stuck at this and was not able to proceed from here.