PC Review


Reply
Thread Tools Rate Thread

how to alphabeticaly sort files in bat file?

 
 
ILiya
Guest
Posts: n/a
 
      29th Feb 2008
I have file archives that need to be extracted in sequence based on the archive names.
To do this, I think I need to iterate through all files in archives directory, pickup those falling into archives pattern (like "WeeklyUpdates????????.zip", sort them alphabeticaly (probably in a separate file) and then iterate through the file feeding them to unzip utility. But I have no idea how to implement this in bat file.
Thanks in advance.
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      29th Feb 2008

"ILiya" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I have file archives that need to be extracted in sequence based on the
archive names.
To do this, I think I need to iterate through all files in archives
directory, pickup those falling into archives pattern (like
"WeeklyUpdates????????.zip", sort them alphabeticaly (probably in a separate
file) and then iterate through the file feeding them to unzip utility. But I
have no idea how to implement this in bat file.
Thanks in advance.

=============

This may need a little more thinking about, e.g.
- Why would you need to sort the files before unzipping them?
- Where should the unzipped files go?


 
Reply With Quote
 
HeyBub
Guest
Posts: n/a
 
      29th Feb 2008
ILiya wrote:
> I have file archives that need to be extracted in sequence based on
> the archive names.
> To do this, I think I need to iterate through all files in archives
> directory, pickup those falling into archives pattern (like
> "WeeklyUpdates????????.zip", sort them alphabeticaly (probably in a
> separate file) and then iterate through the file feeding them to
> unzip utility. But I have no idea how to implement this in bat file.
> Thanks in advance.


At the command prompt, type "SORT /?" for instructions.


 
Reply With Quote
 
ILiya
Guest
Posts: n/a
 
      29th Feb 2008
> =============
>
> This may need a little more thinking about, e.g.
> - Why would you need to sort the files before unzipping them?

These archives contain antivirus updates with the parttern part ???????? actually representing YYYYMMDD date stamp.
As software provider stipulated, the archives may contain duplicate files in which case the latter archive should take precedence.
Hope for further help.


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      29th Feb 2008

"ILiya" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> =============
>
> This may need a little more thinking about, e.g.
> - Why would you need to sort the files before unzipping them?

These archives contain antivirus updates with the parttern part ????????
actually representing YYYYMMDD date stamp.
As software provider stipulated, the archives may contain duplicate files in
which case the latter archive should take precedence.
Hope for further help.

============

Mhm. As far as I remember, there were two questions.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I sort contacts folders in alphabeticaly order? Swiftventure Microsoft Outlook Contacts 0 2nd Mar 2009 01:03 AM
How to arrange excel tabs alphabeticaly =?Utf-8?B?R2F3ZGFsaXZl?= Microsoft Excel Worksheet Functions 1 7th Feb 2007 11:18 AM
How to list Alphabeticaly =?Utf-8?B?SWFuIFByaXRjaGFyZA==?= Microsoft Excel Worksheet Functions 1 23rd Mar 2006 10:11 PM
Specifying a non-alphabeticaly sort order for text-values in repor =?Utf-8?B?SGVubmluZw==?= Microsoft Access Reports 1 25th May 2005 04:19 PM
file sieve - sort files into alphabetized directories *ProteanThread* Freeware 0 11th Jan 2005 03:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:12 AM.