Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Folders to name themselves their parent folder's name when created

16 Nov 2018   #1

Windows 7 Home Premium 64bit
Folders to name themselves their parent folder's name when created

Hey guys! I would like to know how i can get a folder to automatically name itself the name of the folder it's created in...when i create it.

You know how when you right click in a folder and select "New > Folder" and it creates a folder and names it "New Folder" with the name already highlighted and ready to be renamed. Like this:

Well, instead of "New Folder", i want it to be the name of the folder it's in. So in the example above it would be "Desktop". Actually, I would also like it to include - for lack of a better term - it's grandparents name, in it's name, separated by and underscore between each parent. So continuing with the example above, it would be "Backup_Desktop".

Now obviously it could keep on going back to the hard disk partition name which would make it look like this "C_Users_Backup_Desktop", but i'd like to have an option to set a limit as to how far back it goes ack.

Here is an example of what i'm looking for:

Much appreciate any point in the right direction!

My System SpecsSystem Spec
16 Nov 2018   #2

Windows 7 x64, Vista x64, 8.1 smartphone

When you use the GUI interface and create a new Folder, then by default that folder is called "New Folder". In Windows there is no means of changing that name.

However, if you are requesting such feature, then the direction to look is in creating your own Batch file. By using the correct combination of commands, it may be possible to create and run a batch file to do what you want to do. So, I'd start looking there.
My System SpecsSystem Spec
16 Nov 2018   #3

W7 Ultimate SP1, LM19.1 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit

You could copy the name of the parent folder before creating the sub-folder and then just append what you want.

Of course if you are creating huge numbers of folders, a batch file or script would make it easier.
My System SpecsSystem Spec


 Folders to name themselves their parent folder's name when created

Thread Tools

Similar help and support threads
Thread Forum
Windows deletes wrong folder (parent directory)
Hi, I experience this problem in W7 32bit: Sometimes when I want to delete a folder, Windows doesnt delete the folder I selected, but the PARENT folder, causing a lot of data loss. I coudn't find anything about this issue on the web. Today I accidentally removed 4 GB of data in this way! I was...
General Discussion
'Dump contents to parent folder' tool
Hello everyone. I'm new to this Forum but am very much looking forward to learning some new tips and techniques in order to increase my Windows 7 productivity. I do however, already have one idea that I was wondering if anyone could help me with. I am looking to create a script that will help me...
Explorer - How to open parent folder in a new window?
In Windows XP, I used to Ctrl+click the Parent Folder button (folder icon with a green arrow pointing up). There's no such button in Windows 7 and I can't find a way to do it using the keyboard. Is it possible? Thanks, Oren
General Discussion
Windows Explorer Up to parent folder button
Ok I just found this online and It is great hope someone else will like it. It adds the go up one parent folder as opposed to the back button wich is just the last thing you where on. How to add a go up button Classic Shell | Download Classic Shell software for free at
separating child folders from parent folders
I'm not sure if this is the right place to ask my particular question, but here goes. I have a folder for all of my music, and within that folder is a bunch of artists folders, and within each of those I have album folders, which contain the individual music files. I am trying to figure out an...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:13.
Twitter Facebook