extracting path/directory and date from files using keyboard

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tonyology
Junior Member
Junior Member
Posts: 2
Joined: 2006-01-19, 17:38 UTC

extracting path/directory and date from files using keyboard

Post by *tonyology »

Hi
I want to create a macro which needs to access files path and dates.

I can't see any way to do it with the standard software, so I was wondering if there were any plugins that would directly or indirectly give me access to these properties.

Many Thanks in advance
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: extracting path/directory and date from files using keyb

Post by *Sheepdog »

tonyology wrote:Hi
I want to create a macro which needs to access files path and dates.

I can't see any way to do it with the standard software, so I was wondering if there were any plugins that would directly or indirectly give me access to these properties.

Many Thanks in advance
Try Windows Help keyword "for"

for /f %I... %~pI gives the path
for /f %I... %~aI gives the Attributes
for /f %I... %~tI gives the date and time

e.g.

Code: Select all

for /f %I in ('dir /b') do echo %~pI  %~aI   %~tI >>Attrib.txt
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply