Batch File List Operations
Previous Topic  Next Topic 

 

By selecting file from "Pick Files", "Search Files", "Extract Links", user will get a Batch File List with following columns:

 

 

 

1. Sequence ID:

 

Indicating the sequence number of each file, start from 1.

 

2. Input File:

 

If the input source is file, this column will be the input filename without directory, if the input source is http address, the input filename column will be the whole http address.

 

3. Output File:

 

This column is automatically generated according to the rule of output filename, user can change value of this column by changing the rule, or edit items one by one. For http addresses input source, the output filename will also be the extracted from the last part of the address.

 

4. As:

 

If source file is http address, this column indicate the download type of the file.

 

Four types can be selected: html/text/links/binary

 

html/text/links type will get the html/text/links from the web address.

 

binary type will download the original file from web address, this type only apply to file download operation. The file with this type will be ignored in batch text replacement operation.

 

User can change this column by "Edit" button.

 

5. Input Directory

 

Indicate the directory of input file, not apply to http address type.

 

6. Output Directory

 

Indicate the directory of output file, can be changed batchly by "Change output file directory" option, or by "Edit" button one by one.

 

7. Date

 

Indicate the date of the file, only apply to the picked files or searched files.

 

8. Extension

 

The extension of the file. Also apply to http address type.

 

 

Following operations are allowed on the Batch File List:

 

1. Import/Export/Clear

 

 

By clicking "Import List", and selecting list file, user can load the batch file list. The list file is a normal text file, user can simply make the list file by adding each filename/webaddress(start with http://) in each line.

 

By clicking "Export List", the listing will be saved to a file.

 

By clicking "Clear", the list will be cleared.

 

 

2. Sort

 

 

By clicking title of each column or right click each column, user can sort the list by this column ascendently or descently, user can also sort the list by number only. Sometimes the order of the list can not meet the user's requirement by sorting, user can manually adjust the position of each file by "Move Up" and "Move Down" buttons.

 

 

3. Edit

 

 

By selecting one of the items and clicking "Edit", a File Name Editor dialog box is poped-up.

 

User can change "Output Filename", "Download As type", and "Output Directory" respectively. The change of "Download Type" field can also be selected applying to all.

 

 

4. Change output filename for all files

 

 

If the "set output filename" option is checked, the Output filename of all files will be changed according to the rule user has selected. By default, the rule is ${FILENAME}, which means the output filename is set to the same as input filename. When files are firstly picked/searched/extract from source directory/webpage, the set output file option will be unchecked. When user change the rule, the output file list will be changed.

 

 

The Meaning of elements in Rules:

 

 

Basic Rules:

 

${FILENAME} means the whole filename(entered in output filename field in replace dialog)

 

${BASE} means the filename without extension.

 

${EXT} means the extension, if file has no extesion, abc.${EXT} will equal to 'abc', not 'abc.'

 

${FIRSTLINE} means the using the firstline in the file as part or whole of the filename.

 

# means sequence No. occupying 1 character space.

 

## means sequence No. occupying 2 character spaces.

 

...

 

@ means sequence No. from 'a' to 'z'

 

@@ means sequence No. from 'aa' to 'zz'

 

@@@ and more means sequence No. from 'aaa' to 'zzz'

 

 

Advanced Rules:

 

${FILENAME}{n1,n2} means the character n1 to character n2 of the ${FILENAME}, if n1<0 or n2<0 means count from end.

 

${FILENAME}{function,para2,para3,... } will be translated to function(${FILENAME},para2,para3,...)

 

${FILENAME}{function,para2,para3,... }{n1,n2} is combination of above 2 rules

 

${FILENAME}<expression> means evaluate expression with ${FILENAME} as variable $match, for example ${FILENAME}<chars($match,1,3)> will be translated to chars(${FILENAME},1,3)

 

${FILENAME}<expression>{n1,n2} is combination of above rule and ${FILENAME}{n1,n2} rule.

 

##...#{num_start,num_step} means the sequence number start from num_start, increased by num_step.

 

##...#<expression> means evaluate expression with sequence number as variable $match.

 

 

Note 1: n1, n2, num_start and num_step can be any of the integer number.

 

Note 2: All rules about ${FILENAME} also apply to ${BASE} and ${EXT}

 

Note 3: All rules about ##...# also apply to @@...@

 

 

Example:

 

 

1) with rule "###_${BASE}.new", following input file,

 

 

fileone.txt

 

filetwo.txt

 

filethree.txt

 

...

 

 

will generate a list of following output files:

 

 

001_fileone.new

 

002_filetwo.new

 

003_filethree.new

 

...

 

 

2) with rule "###{1,2}_${BASE}{1,-2}.new", following input file,

 

 

fileone.txt

 

filetwo.txt

 

filethree.txt

 

...

 

 

will generate a list of following output files:

 

 

001_fileon.new

 

003_filetw.new

 

005_filethre.new

 

...

 

 

3) with rule "###_${BASE}{replace,'file','document'}.new", following input file,

 

 

fileone.txt

 

filetwo.txt

 

filethree.txt

 

...

 

 

will generate a list of following output files:

 

 

001_documentone.new

 

002_documenttwo.new

 

003_documentthree.new

 

...

 

 

4) rule ###_${FILENAME}{file_time,'%Y-%m-%d'}

 

will change file name to format like 001_(last modify time of file)

 

5) rule ${FILENAME}{html_title}{1,10}

 

will change file name to the first 10 character of html file title.

 

6) rule ${FILENAME}{uc} will change filename to upper case

 

7) rule ${FILENAME}{lc} will change filename to lower case

 

8) rule ${FILENAME}{ucfirst} will capitalize the filename

 

 

5. Change output directory for all files

 

 

By checking "Change output file directory" option, and enter a new directory at right, user can change all files' output directory all together.

 

User can also set "Default download directory" at right, if no output directory is set for files with http type, files will be downloaded in this directory.