Various scripts for processing images and other data.
PTHbatch.bat takes a flat directory of TIF images with all files following a consistent naming convention, and moves front files (_01) and back files (_02) into on directory based on the the base file name that precedes the underscore. The script outputs a batchlist.txt file manifest. PTHreverse.bat reverses the operation and moves files out of subdirectories.
- Copy Preservation Files into a new directory for processing.
- Copy PTHbatch.bat and PTHreverse.bat into the directory that you want to process.
- Customize script based on your filenaming convention:
- Format filter: Default
(*.tif)
which means processing all files (*
) with .tif extention. - Tokens: Default tokens=1 which means processing up to first instance of specified delimiter.
- Delims: Default underscore (
_
) which means processing filename string to the left of the specified delimiter. - Output files can be customized as well.
- Format filter: Default
- Double-click PTHbatch.bat file. The script will run, creating directories and moving files into each directory based on filename. THe output file, batchlist.txt, lists all the subdirectories and files in the main directory.
- Oops, I didn't mean to batch process the files yet! Double-click PTHreverse.bat, and all the files will be moved out of the subdirectories into the main driectory again. You can delete the empty subdirectories and batchlist.txt file.
- When you done processing, delete bat files from main directory.