By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!Has anyone already written a script for finding the n more recently modified files in a directory tree, ideally limited by a wildcard?
TIMEDIR /A-d /S /F /O:-d /^>3 c:\folder\*.txt
DIR /A-d /S /F /O:-d c:\folder\*.txt | HEAD /N3
TIMEDIR /S /F /(F TMW/TDW/TYW TTW)
That gives only ONE file, the OP requested a variable number "n". I'd recommend TIMEDIR instead of a batch file.
If I want to find the 10 newest files in
a directory I would use DIR piped into HEAD or TAIL.
> ---Quote (Originally by samintz)---
> If I want to find the 10 newest files in
> a directory I would use DIR piped into HEAD or TAIL.
> ---End Quote---
> That'll give the n most recent in a single directory....
>
>
>
>
>
samintz)---> ---Quote (Originally by
> If I want to find the 10 newest files in
> a directory I would use DIR piped into HEAD or TAIL.
> ---End Quote---
> That'll give the n most recent in a single directory....
>
>
>
>
>
> ---Quote (Originally by
> If I want to find the 10 newest files in
> a directory I would use DIR piped into HEAD or TAIL.
> ---End Quote---
> That'll give the n most recent in a single directory....
>
>
>
>
>
Lotus frickin' Notes.
What is your outgoing mail format set to?? I suspect that MIME would work better than Rich Text (this can be set on the location document's Mail tab). There is also a user preference setting that allows you to control whether Internet messages are sent as plain text, HTML or both although exactly where that is depends on which version of Notes you are using.It appears to wrap after I hit send
logparser -i:fs -rtp:-1 -q:on -recurse:-1 "
select top 10 to_string( LastWriteTime, 'yyyy-MM-dd hh:mm:ss') as lwt,
path, name, attributes from 'd:\temp\*.*'
where substr(attributes,0,1) <> 'D' order by lwt desc "
2106-01-01 06:14:18 D:\temp\alter_pc\dosbox\games\prehistorik2\MYSTERY.TRK MYSTERY.TRK -A-------
2023-09-13 01:44:46 D:\temp\alter_pc\dosbox\games\prehistorik2\PRESENTA.TRK PRESENTA.TRK -A-------
2023-09-13 00:27:14 D:\temp\alter_pc\dosbox\games\prehistorik2\GLACE.TRK GLACE.TRK -A-------
2023-09-13 00:20:30 D:\temp\alter_pc\dosbox\games\prehistorik2\MINES.TRK MINES.TRK -A-------
2011-10-24 22:18:30 D:\temp\etilqs_u7QuCRx80iuEtBJlbSiC etilqs_u7QuCRx80iuEtBJlbSiC -A-H-----
2011-10-24 22:18:03 D:\temp\~DF2B334647DD15BC79.TMP ~DF2B334647DD15BC79.TMP -A-------
2011-10-24 22:18:03 D:\temp\~DF1ACDBCF7BC07A04D.TMP ~DF1ACDBCF7BC07A04D.TMP -A-------
2011-10-24 22:09:11 D:\temp\etilqs_c4qTaCzJYCb4YIeS7L7v etilqs_c4qTaCzJYCb4YIeS7L7v -A-H-----
2011-10-24 22:04:39 D:\temp\etilqs_iAtNyyYvTRbxJosTI2he etilqs_iAtNyyYvTRbxJosTI2he -A-H-----
2011-10-24 20:19:05 D:\temp\etilqs_cmyqv3flU1hgsynka8P6 etilqs_cmyqv3flU1hgsynka8P6 -A-H-----
Sounds like a good candidate for plugin commands or functions, perhaps returning results in an array variable.
- should use /S for including subdirectories; possibly incorporating the /S+ etc. syntax (lots of work... unless you can get Rex to provide access to his code)
Never liked such syntax; it causes problems if you have multiletter options (and there's already one in there.) I could easily allow you to mash options together without spaces, but you'd have to provide the slash before each one.- should be able to combine multiple options with a single /, e.g., /ins instead of /i /n /a
Or perhaps allow args in any order, but require a double percent sign before the array name?- should make file specification last element on command line, so multiple specifications could be accommodated (see also suggestion about keyword vs. positional parameters)
- should make file specification last element on command line, so multiple specifications could be accommodated (see also suggestion about keyword vs. positional parameters)
And here 'tis: Sift Plugin
Won't work in TCC/LE, which doesn't support arrays.
Currently the download v0.30.0 is still posted, not the documented v0.50.0. Or do I need to purge my browser cache?I'm putting up a radically rewritten build
Currently the download v0.30.0 is still posted, not the documented v0.50.0. Or do I need to purge my browser cache?
Is that the browser cache or the DNS cache? I have no problems with geting the current broswer pages but just asking for possible futire reference.