Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Sort files collection ?

Reply
 
Old 4 Weeks Ago   #21 (permalink)
Al Dunbar


 
 

Re: Sort files collection ?


"Dr J R Stockton" <reply0945@newsgroup> wrote in message
news:Vyslo1P9mG8KFwSy@newsgroup
Quote:

> In microsoft.public.scripting.vbscript message <22f6f6d408818bb58f99a98c
> 2b24aa78@newsgroup-gateway.com>, Sun, 1 Nov 2009 20:36:45, tonyb
> <guest@newsgroup-email.com> posted:
Quote:

>>
>>I know this is a bit off thread, as this is just in normal Windows
>>usage, but I use the current ISO date/time string (yy;MM;ddthh;mm;ss) as
>>a unique identifier, pasting it before the file name, for any files I
>>want to keep in the order I filed them or received them (usually work
>>related).
>
> I do not see where ISO 8601:2004 allows either a two-digit year or a
> semicolon as separator. While the first two digits of the year will not
> change soon, they do serve to indicate that the field order is not MDY
> of DMY, and is probably YMD.
Dr. J., I am surprised, and even a bit shocked, to see you being almost an
apologist for a practice that has no particular justification ;-)

We relied on a similar trick in the previous century, during most of which
the two digit year would invariably be greater than the largest possible day
of month number. You may recall the name of the phenomenon that occurred
when it finally dawned on us that we were, effectively, planning our own
obsolescence. Kind of like my mother in law who back in the 1990's had a
tombstone sculpted for herself with the first two digits of the date of
death being pre-carved as "19". A common, and even practical, practice
earlier in the century. Apparently the few who were born in the 1890's and
who lived into the 21st century thought better of the idea and left the
slate completely blank as long as they could.

/Al



My System SpecsSystem Spec
Old 4 Weeks Ago   #22 (permalink)
Dr J R Stockton


 
 

Re: Sort files collection ?

In microsoft.public.scripting.vbscript message <#F#E5xQXKHA.4688@newsgroup
NGP06.phx.gbl>, Tue, 3 Nov 2009 22:05:48, Al Dunbar
<alandrub@newsgroup> posted:
Quote:

>
>"Dr J R Stockton" <reply0945@newsgroup> wrote in message
>news:Vyslo1P9mG8KFwSy@newsgroup
Quote:

>> In microsoft.public.scripting.vbscript message <22f6f6d408818bb58f99a98c
>> 2b24aa78@newsgroup-gateway.com>, Sun, 1 Nov 2009 20:36:45, tonyb
>> <guest@newsgroup-email.com> posted:
Quote:

>>>
>>>I know this is a bit off thread, as this is just in normal Windows
>>>usage, but I use the current ISO date/time string (yy;MM;ddthh;mm;ss) as
>>>a unique identifier, pasting it before the file name, for any files I
>>>want to keep in the order I filed them or received them (usually work
>>>related).
>>
>> I do not see where ISO 8601:2004 allows either a two-digit year or a
>> semicolon as separator. While the first two digits of the year will not
>> change soon, they do serve to indicate that the field order is not MDY
>> of DMY, and is probably YMD.
>
>Dr. J., I am surprised, and even a bit shocked, to see you being almost
>an apologist for a practice that has no particular justification ;-)

Attribute it to a lack of understanding on your own part.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
My System SpecsSystem Spec
Old 4 Weeks Ago   #23 (permalink)


Vista Home Premium 32
 
 

Re: Sort files collection ?

I must accept your castigation for not having done my homework properly.
The year in ISO format should indeed have 4 digits. Unfortunately, although the correct seperator is a colon, windows does not allow this in file names!
My System SpecsSystem Spec
Old 4 Weeks Ago   #24 (permalink)
Dr J R Stockton


 
 

Re: Sort files collection ?

In microsoft.public.scripting.vbscript message <a770c07dcdb529f6d921d8db
0eb9a1ce@newsgroup-gateway.com>, Fri, 6 Nov 2009 10:12:59, tonyb
<guest@newsgroup-email.com> posted:
Quote:

>
>I must accept your castigation for not having done my homework
>properly.
>The year in ISO format should indeed have 4 digits. Unfortunately,
>although the correct seperator is a colon, windows does not allow this
>in file names!
The correct time separator is a colon.

You can use - between the date fields and _ between the time fields.

Probably better to use the compact ISO date and time forms YYYYMMDD and
hhmmss, and to put a minus between them - 20091107-181247etc.etc .

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
My System SpecsSystem Spec
Old 3 Weeks Ago   #25 (permalink)
Al Dunbar


 
 

Re: Sort files collection ?


"Dr J R Stockton" <reply0945@newsgroup> wrote in message
news:28VN7Tsb8g8KFw32@newsgroup
Quote:

> In microsoft.public.scripting.vbscript message <#F#E5xQXKHA.4688@newsgroup
> NGP06.phx.gbl>, Tue, 3 Nov 2009 22:05:48, Al Dunbar
> <alandrub@newsgroup> posted:
Quote:

>>
>>"Dr J R Stockton" <reply0945@newsgroup> wrote in message
>>news:Vyslo1P9mG8KFwSy@newsgroup
Quote:

>>> In microsoft.public.scripting.vbscript message <22f6f6d408818bb58f99a98c
>>> 2b24aa78@newsgroup-gateway.com>, Sun, 1 Nov 2009 20:36:45, tonyb
>>> <guest@newsgroup-email.com> posted:
>>>>
>>>>I know this is a bit off thread, as this is just in normal Windows
>>>>usage, but I use the current ISO date/time string (yy;MM;ddthh;mm;ss) as
>>>>a unique identifier, pasting it before the file name, for any files I
>>>>want to keep in the order I filed them or received them (usually work
>>>>related).
>>>
>>> I do not see where ISO 8601:2004 allows either a two-digit year or a
>>> semicolon as separator. While the first two digits of the year will not
>>> change soon, they do serve to indicate that the field order is not MDY
>>> of DMY, and is probably YMD.
>>
>>Dr. J., I am surprised, and even a bit shocked, to see you being almost
>>an apologist for a practice that has no particular justification ;-)
>
>
> Attribute it to a lack of understanding on your own part.
My apologies, however, it was more a lack of interpretation on my part than
understanding. To me it's not the value of digits in the year that indicate
the YMD order, but the fact that there are more than two of them, plus the
fact that YDM is the least likely order possible.

/Al


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Collection of Batch files for everyone to use! General Discussion
Sort by date? And Folder missing files General Discussion
Re: Can I sort within a sort, in folder view (eg., Name, Date) Live Mail
Sort by name doesnt sort correctly in my opinion Vista file management
Disabling auto alphabetical order sort in start / program files Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46