Post this before I lose it. Thanks for the rethumb command. It works great.
This code will pull the thumbs out of all the files.
Hope you don't mind jupe, I used your code as a base to get all the subdirectories as well.
Code: Select all
// Loop through each .dbits file found in the search.
foreach($file, quicksearch("*.dbits /fn"), <crlf>) {
// Get the directory of the current .dbits file
$dir = gpc($file, "path");
// Get the base filename of the .dbits file
$base = gpc($file, "base");
// Build the path to the corresponding .ini file using the same base name
$inipath = $dir . "\" . $base . ".ini";
// Get the Start Path from the .ini file.
$aPath = getkey("SoftPath", "General", $inipath);
// Concatenate the base output folder with the additional path from the .ini file.
$finalOutputPath = "Z:\Rethumb" . "\" . $aPath;
$newfinal = replace($finalOutputPath, ":","",,3); //replace all : with nothing past the first Z:
new($newfinal, "dir",); //xyplorer version of "make directory".
// Regenerate the thumbnail for the .dbits file and save it to the final output path.
rethumb $dir, $base, $newfinal;
}