I'm trying to use a FOR /R loop to iterate over some particularly long-named folders (greater than 260 characters in length, hence the need to use \?\ ) I need out of the loop, the fully qualified path name and the last access time
If I do this:
for /r "\\?\c:\windows" %a in (*.bat) do echo %~fta
I get the full path and the last modified time. Even if I set DIRCMD to /TA, there seems to be no effect on the FOR /R Does anyone know a way to force that time/date to be last accessed rather than last modified? AFAIK, the long path name rules out Powershell, which was my original approach but happy to receive suggestions in that as well.