hi! is it possible to detect a part of a file name (and part of it ignored by pattern) and then use it to make a new folder ?
for example, if i have this file selected : Family Dinner S03E01.mkv
the script/command would create a new folder called "Family Dinner".
the "S03E01" could be anything but it would always follow the "S##E##" pattern.
another example would be the selected file "The Art of Vintage S01E04.mkv" would then have the folder "The Art of Vintage" created, etc.
i found an example on this forum to rename a file based on the folder name but got confused trying to make it work in reverse AND ignore a pattern in the file.
New Folder From Selected File BUT Ignore a Pattern ?
-
- Posts: 224
- Joined: 29 Sep 2022 14:20
- Location: Win10 @125%
Re: New Folder From Selected File BUT Ignore a Pattern ?
new(regexreplace(<curbase>, "\sS\d\dE\d\d.*"), "dir");
-
- Posts: 224
- Joined: 29 Sep 2022 14:20
- Location: Win10 @125%
Re: New Folder From Selected File BUT Ignore a Pattern ?
oh my! that is AMAZING ! i wasn't any near close to that. thank you so much !