# Create Folder(s) based on Filename(s): Context Menu Button

**URL:** <https://resource.dopus.com/t/create-folder-s-based-on-filename-s-context-menu-button/8810>\
**Category:** Help & Support\
**Created:** [November 22, 2009, 9:16pm UTC](https://resource.dopus.com/t/create-folder-s-based-on-filename-s-context-menu-button/8810 "2009-11-22T21:16:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Alterego](https://resource.dopus.com/user_avatar/resource.dopus.com/alterego/32/26910_2.png) [@Alterego](https://resource.dopus.com/u/Alterego)\
**Post date:** [November 22, 2009, 9:16pm UTC](https://resource.dopus.com/t/create-folder-s-based-on-filename-s-context-menu-button/8810/1 "2009-11-22T21:16:59Z")

</div>

Hello All,

I can see that some work was already done on making a shortcut or toolbar button for creating a folder based on the selected filename(s) (minus the file extension). If there were more than one filenames selected then the name of only the first file would be used for creating the folder name and all the selected files would move into it. Pretty useful.... have a look over here :

> [@Creating folders from filename](https://resource.dopus.com/t/creating-folders-from-filename/5931):
>
> Hi, This is my first post so please go easy on me smiley. Please could someone assist me with renaming files. What I am trying to do is move my movie collection into folders based on the filename. For example, Move1.avi -\> Movie1\Movie1.avi T…

Well sure it is, but something extra is desired with my case having a sizeable digital collection of movies and episodes. I usually store my movie files (avi,mkv,mp4) in separate folders (one per movie file) based on the actual movie name/file name.

So if I have 4 movie files in any folders, then after selecting the desired files, I would like a right click context menu button to offer me to create as many (4 folders) folders with exact filenames (minus the file extension) which were in the selection, and to automatically move the movie files into their respective folders as well. Which would save me a lot of tedious work and make my life easier.

I hope i was clear in describing what is needed. Is it something too much to ask for ? , I am pretty sure that experts and RegEx gurus here can make it look like a piece of cake and I would get a working solution before I know.

Thanks for all your co-operation in advance.

Regards,  
AlterEgo.

---

_[View the full topic](https://resource.dopus.com/t/create-folder-s-based-on-filename-s-context-menu-button/8810)._
