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

Skyz1

New member
Local time
1:10 PM
Messages
24
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:

LRX18yH.png

44FfOoK.png


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:

9AnplTx.png


yAozN0Z.png


PsG3z5B.png


d1DMoQA.png


Much appreciate any point in the right direction!
 

My Computer My Computer

At a glance

Windows 7 Home Premium 64bitIntel Core i5 430M @ 2.27GHz4.00GB Dual-Channel DDR3 @ 532MHz (7-7-7-20)ATI Mobility Radeon HD 5650 (1366x768@60Hz)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
dv6-3042ee
OS
Windows 7 Home Premium 64bit
CPU
Intel Core i5 430M @ 2.27GHz
Motherboard
HP 144A 1066 MHz
Memory
4.00GB Dual-Channel DDR3 @ 532MHz (7-7-7-20)
Graphics Card(s)
ATI Mobility Radeon HD 5650 (1366x768@60Hz)
Hard Drives
1T TOSHIBA MQ04ABF100 ATA Device (HDD)
Antivirus
Avast
Browser
Opera
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 Computer My Computer

At a glance

Windows 7 x64, Vista x64, 8.1 smartphoneIntel E8400 65W 64-bitDDR2 2 x 2GB, 1GB x 2XFX Radeon HD5750
Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
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 Computer My Computer

At a glance

W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, ...AMD Phenom II x6 1100T, 3.3 GHz12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2G...NVIDIA GeForce GTX 660
Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
Back
Top