Create New Folder (F7) with name of the file selected.

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
FKCapitalism
Posts: 76
Joined: Wed Feb 09, 2022 7:32 pm

Create New Folder (F7) with name of the file selected.

Post by FKCapitalism »

If i click F7 it creates folder with default name "New Folder 1", what i'd like to see if i selected image file _DSC0437.jpg inside file list and click F7 XnView creates new folder and set default suggested name for folder to "_DSC0437", still allowing to change it like it currently does.

new folder.png

Even better if i select multiple files and click F7 XnView will move the files inside newly created folder and name folder with the name of the first that was selected (m. (and auto generate thumbnails for that folder :D).
FKCapitalism
Posts: 76
Joined: Wed Feb 09, 2022 7:32 pm

Re: Create New Folder (F7) with name of the file selected.

Post by FKCapitalism »

Please implement, this is very needed feature for me i create folders daily from thumbnails view.

i.e. After photo shot of 300 images of model in different backgrounds outside, i have like 5-15 pictures on of each background.

Need to order them in folders it would be super fast if i could simply select 7 pictures in thumbnails view and press Shift+F7 then XnView will create new folder, auto naming folder as first image selected, and auto move selected images inside that folder then open the folder

For instance Alt+Shift+F7 would do same operation as described above except it will not open the newly created folder.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Create New Folder (F7) with name of the file selected.

Post by michel038 »

A first step that I can suggest (if you are using Windows)
This step will create a folder name with the name of the selected photo, and move the photo into it.

Create an "Open with" entry for Exiftool (see viewtopic.php?f=82&t=43560 )
with this parameter for tests :

Code: Select all

-k -Testname<${Directory}\${FileName;s/\.[^.]*$//}\${Filename}
Try on a single file, for example DSC1234.jpg (in C:\photos\2022\07\test\) ... "Open with"
Check in the ExifTool window if the new name of your file will be built like this C:\photos\2022\07\test\DSC1234\DSC1234.jpg
You can see in the path that the name of the photo became a folder containing this photo. Close the window.
If it works , then replace Testname by Filename like this

Code: Select all

-k -Filename<${Directory}\${FileName;s/\.[^.]*$//}\${Filename}
Select a few photos that you want to become folder names (and where they will be moved), Open With ...
Each photo creates a new folder : it's not a complete solution for your wish ...
Maybe on ExifTool's forum, someone can suggest a better method ...
FKCapitalism
Posts: 76
Joined: Wed Feb 09, 2022 7:32 pm

Re: Create New Folder (F7) with name of the file selected.

Post by FKCapitalism »

michel038 wrote: Mon Jul 04, 2022 4:41 pm

Code: Select all

-k -Filename<${Directory}\${FileName;s/\.[^.]*$//}\${Filename}
Select a few photos that you want to become folder names (and where they will be moved), Open With ...
This works thanks you however i need move many files in same folder not separate.
michel038 wrote: Mon Jul 04, 2022 4:41 pm Each photo creates a new folder : it's not a complete solution for your wish ...
Maybe on ExifTool's forum, someone can suggest a better method ...
They said its not possible

Guess i can create my own AutoHotkey script that will do it.
Post Reply