I need to get some files as base to select their folder pairs.
Base files start with underscore and has .zip as extension. I'm looking for a way to get rid of both "_/.zip" so the resulting list can be used to select the folders, too. How?
This one almost does the first part of the job (it stops deleting the first underscore and reports all the rest with them):
Code: Select all
selfilter "|_*.zip";
Setting "AllowRecursion", 1;
$files = Report("{Name}<crlf>", 1);
substr $files, $files, 1;
copytext $files;
Code: Select all
selfilter "|_*.zip";
Setting "AllowRecursion", 1;
$files = Report("{Name}<crlf>", 1);
$Loop = 1;
while(1)
{
IF ($ITEM==""){break;}
substr $files, $files, 1;
incr $Loop;
}
copytext $files;
_Mosaico.zip
_Vectorian_Giotto.zip
Sample result must be:
Mosaico
Vectorian_Giotto
Ideally the script should get both input/output selected for the next (last) step: throwing everything into a predefined folder.
Thank you.