File Processing Scripts Collection V1.0
Here is a collection of useful DOS BATCH and VBSCRIPT scripts for processing, moving, sorting of files. The code for all scripts can be downloaded in a single ZIP file called: Roy-FileProcScripts.zip The ZIP archive also contains a nice intro for RoySAC.com, which I recommend to check out :). ImageFilesSort2Dirs.bat IMAGES Cleanup/Sorting Batch Script looks for IMAGE files in current directory (Extensions JPG, PNG, GIF, BMP, LBM, TGA, PCX, SVG, TIF, IFF) looks for “-” in file name (assumed to be the separator between Artist Name and Image Title) parses string before first “-“, trims trailing spaces checks if directory with that name exists 4.1 If not, it creates it (artist name) moves all image files of the artist into the artist dir 1: @echo off 2: :: ——————————————————- 3: :: IMAGES Cleanup/Sorting Batch Script 4: :: ——————————————————- 5: :: 1. looks for IMAGE files in current directory 6: :: (Extensions JPG, PNG, GIF, BMP, LBM, TGA, PCX, SVG, TIF, IFF) 7: :: 2. looks for “-” in file name (assumed to be 8: :: the separator between Artist Name and Image Title) 9: :: 3. parses string before first “-“, trims trailing spaces 10: :: 4. checks if directory with that name exists 11: :: 4.1 If not, it creates it (artist name) 12: :: 5. moves all image files of the artist into the artist dir 13: :: 14: :: Batch Script by Carsten Cumbrowski aka Roy/SAC 15: :: visit http://www.roysac.com 16: 17: 18: setlocal enabledelayedexpansion 19: CLS[…]