DirSort 1.0

DirSort is Copyright © 2001 by Daniele Paolo Scarpazza. All rights reserved.

www.scarpaz.com

DirSort is a simple program which renames all the files in a directory in a sequential manner (like file01.txt, file02.txt, ...). The generation of the sequential names respects the sorting by file time (creation, last write or last access time).

Example: file01 will be the most (or least) recent one, file02 will be the second most (or least) recent, and so on.

This feature is useful when acquiring directories full of scanned images or other stuff which were sequentially generated (or anyway generated in a given time order which must be taken into account) and need to be ordered.

Work directory
Insert here the full path of the directory whose files are to be renamed. Use the "browse" button to choose from an interactive directory tree list.

New name format
Insert here the format used to generate the new names. Note that original extensions are left unchanged. This string tells to the program how to format the new sequential file names; this is a standard C-language "printf()-style" format string, but do not worry if you do not know C programming language, every information you will need is given here:
  • if you want a simple sequential number (no trailing zeroes, no other characters), specify
    %i
    ; names will be 0.ext, 1.ext, 2.ext, ..., 9.ext, 10.ext, 11.ext, ..., 99.ext, 100.ext, ... .
  • if you want to add a simple constant text label, add the desired label before or after the %i, e.g.:
    file%i
    . Do not use the percent sign inside this string;
  • Otherwise, you can use a format string composed by a preceeding text, then the placeholder for the value and a following text. The placeholder itself is composed of
    • a leading percent sign, followed by
    • an (optional) padding size indicator (the number of total characters which compose the number representation, including digits, spaces and punctuation); if you put a zero "0" before this indicator, the padding character is the zero, otherwise the space is used;
    • and an "i" character, which stands for "integer number".
Examples are provided in the following table.
Format string Result
%i 0.ext, 1.ext, ...
%03i 000.ext, 001.ext, ...
file-%i file-0.ext, file-1.ext, ...
%2ith 00th.ext, 01th.ext, ...

Starting number
Insert here the number from which you want to start the numbering. It may be zero, one, or any integer number. If you start with 5, the files will be renamed as file05.ext, file06.ext, ...

Sorting criteria
These two drop-down lists lets you specify if you want to sort the files in ascending or descending order, on the basis of creation time, last write time or last access time.

Log listbox
This listbox contains the full list of the renamings, the first column contains the original names and the second one the new names.

License
    
	LICENSE AGREEMENT FOR SOFTWARE 

    IMPORTANT--READ CAREFULLY: This License Agreement is a legal agreement 
    between you, the licensee and Daniele Paolo Scarpazza for the DirSort
    software product, which includes computer software and may include 
    "online" or electronic documentation.

    By installing, copying, or otherwise using this software, you agree to 
    be bound by the terms of this agreement. If you do not agree to the terms of 
    this agreement, do not install, copy, redistribute, or use, in any sense, the 
    software.


    SOFTWARE PRODUCT LICENSE

    This software is protected by copyright laws and international copyright 
    treaties, as well as other intellectual property laws and treaties. 
    The software is licensed, not sold. You must not remove or alter any 
    copyright notices on all copies of the software. You may not reverse 
    engineer, decompile, or disassemble the software, except and only to the 
    extent that such activity is expressly permitted by 
    applicable law notwithstanding this limitation.


 
    USABILITY

    This license entitles the licensee to freely copy, distribute and use
    an unlimited number of copies of this program provided that it is
    distributed in the original form with no modifications, with this license 
    and documentation.



    COPYRIGHT

    All title, including but not limited to copyright, in and to the SOFTWARE 
    PRODUCT and any copies thereof are owned by Daniele Paolo Scarpazza. All title 
    and intellectual property rights in and to the content which may be accessed 
    through use of the SOFTWARE PRODUCT is the property of the respective content 
    owner and may be protected by applicable copyright or other intellectual property 
    laws and treaties. This agreement grants you no rights to use such content. 
    All rights not expressly granted are reserved by me. 



    NO WARRANTIES

    I expressly disclaim any warranty for this software. THE SOFTWARE 
    PRODUCT AND ANY RELATED DOCUMENTATION IS PROVIDED "AS IS" WITHOUT WARRANTY OR 
    CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, 
    THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A 
    PARTICULAR PURPOSE, OR NONINFRINGEMENT. THE ENTIRE RISK ARISING OUT OF USE OR 
    PERFORMANCE OF THE SOFTWARE PRODUCT REMAINS WITH YOU.



    LIMITATION OF LIABILITY. 

    In no event I shall be liable for any damages whatsoever (including, without 
    limitation, damages for loss of business profits, business interruption, 
    loss of business information, or any other pecuniary loss) arising out of the 
    use of or inability to use this software, even if I have been advised of the 
    possibility of such damages. Because some states and jurisdictions do not allow 
    the exclusion or limitation of liability for consequential or incidental damages, 
    the above limitation may not apply to you.

 Copyright (C), ©, 2001, by Daniele Paolo Scarpazza. All rights reserved.
 License version 1.1.
 END OF DOCUMENT