Maybe someone can help me with this one. I've been testing variations for hours and reading numerous posts here for inspiration but can't figure out how to get what I want.
I have some folders, each one containing four files, each having a different extension. In other words, whatever the folder, I'm sure to find in it the four file types. I want to read the name of the type 1 file (let's say .doc) to have a basename, that I would use to rename the three other files.
Sounds simple but I'm stuck. So far, I have :
Code: Select all
selfilter "*.jpg";
$base = substr(GetInfo("SelectedItemsNames"), 0, -2);
$b = RegExReplace($base, ".doc", "");
XYplorer Beta Club