ScanDir


How to  
  - Use the rename Template :
The rename Template was introduced with ScanDir 1.3.3 as part of the Rename Dialog.

The rename Template recognizes the following directives:
  • * (asterisk), during Rename, the asterisk is replaced by the filename;
  • # (hash), during Rename, the hash is replaced by a (ascending) number;
  • $D, is replaced by the current day;
  • $M, is replaced by the current month;
  • $Y, is replaced by the current year;
Multiple ### characters can be used to represent leading zeros:

before Rename: sample-file-name.txt
Template used: $Y$M$D * ###
after Rename: 20200629 sample-file-name 001.text

Non-directive characters (including spaces) are copied from the Template to the new filename:

before Rename: sample-file-name.txt
Template used: [$Y-$M-$D] *_###
after Rename: [2020-06-29] sample-file-name_001.text

  - Scan multiple drives :
Starting with ScanDir 1.3.3 it is possible to select "This PC" and click the [SCAN] button. This will scan all available drives. Be aware that scanning all connected media can take a considerable amout of time.

Add the drives you would like to scan to the directory List:
  • select the drive in the top of the Dir.Tree, right-click and select Add to List from the pop-up menu.
  • -or-
  • click the List tab, right-click in the (empty) list and select Add Directory from the pop-up menu
  - Search arguments :
String:
- if the search argument does NOT contain asterisks ( * ) or questionmarks ( ? ) it is interpreted as a string;
- if the search argument starts with a double quote ( " ) it is treated as a string;
The specified text must occur somewhere in the file path, file name or file extension. Specify the string(s) you want to scan for. Multiple strings must be separated by a comma ( , ) or blank ( ). If the string to search for contains comma's or blanks, the entire string must be placed between double-quotes ( " ).

Mask:
- if the search argument contains an asterisk ( * ) or questionmark ( ? ) it is interpreted as a mask;
- if the search argument starts with a colon ( : ) it is treated as a mask;

A valid mask consists of literal characters, sets, and wildcards. Each literal character must match a single character in the string. The comparison to literal characters is case-insensitive. Each set begins with an opening bracket ([) and ends with a closing bracket (]). Between the brackets are the elements of the set. Each element is a literal character or a range. Ranges are specified by an initial value, a dash (-), and a final value. Do not use spaces or commas to separate the elements of the set. A set must match a single character in the string. The character matches the set if it is the same as one of the literal characters in the set, or if it is in one of the ranges in the set. A character is in a range if it matches the initial value, the final value, or falls between the two values. All comparisons are case- insensitive. If the first character after the opening bracket of a set is an exclamation point (!), then the set matches any character that is not in the set. Wildcards are asterisks (*) or question marks (?). An asterisk matches any number of characters. A question mark matches a single arbitrary character.

Regular expression:
Check [V] Regular Expression to indicate that the specified search argument contains a regular expression.

  - Sample searches :
Find all MP3 music files:
Specify *.mp3 as the search argument, check [V] Filenames, uncheck [-] Directories, check scan sub-directories [V] and press the [SCAN] button..

Find all folders which have "Jimi Hendrix" in their (path)name:
Specify "Jimi Hendrix" as the search argument, uncheck [-] Filenames, check [V] Directories, check scan sub-directories [V] and press the [SCAN] button.

  - Generate Bates numbers (labels / stamps) :
The Rename function can be used to add Bates numbers. Select a range of files from the item list, right-click to open the Rename dialog and select one or more of the following options:
  • (1) Edit: select [Replace] and specify Old and New -or- select [insert] and enter the Insert string and position;
  • (2) Add: select Prefix and/or Suffix and/or Date [V] and/or MD5 [V] or CRC32 [V];
  • (3) Number: select Prefix or Suffix and/or Separator;
Note: Generating MD5 for a large number of (large) files can be very time consuming, consider using CRC32 instead.



Click to ask a Question




© 1999-2023 Skybird communications - modified: June 29, 2020 14:42:07