Windows 10: How to remove all folders of the 2. hierarchy which have only 1 subfol


  1. Posts : 56
    Windows 10 Version 6.2 (Build 9200) Home, 64bit
       01 Apr 2016 #1

    How to remove all folders of the 2. hierarchy which have only 1 subfol


    A folder (1) contains an uncertain amount of sub folders (second hierarchy). Each folder in the 2. hierarchy can contain at least one item (folder or file) or more. When a folder of the second hierarchy contains only one subfolder (no more items) this subfolder shall be remove (without its content) so that the subfolder (third hierarchy) of the folder of the second hierarchy becomes a subfolder of the second hierarchy.

    How could I do it without any knowlegde of programming and such automatically with as less as possible interactions?

    Each subfolder of the third hierarchy contains at least one item (file or folder) and has an uncertain name, the name can be the same one as its superior folder.

    For example:
    I:\folder 1\folder 2\folder 3
    folder 2 has only one subfolder (no more items), "folder 3", therefor folder 3 shall go to:
    I:\folder 1\folder 3

    For example
    I:\folder 1\folder 2\folder 3
    I:\folder 1\folder 2\file.xxx
    folder 2 has one subfolder and one item, therefore it keeps where it is
    Last edited by Bingus; 02 Apr 2016 at 03:43.
      My ComputerSystem Spec


 

Related Threads
How Add or Remove Folders from This PC in Windows 10 The This PC window includes a Folders group that displays a linked Desktop, Documents, Downloads, Music, Pictures, and Videos folder from the current user account's "C:\Users\(user-name)"...
Alright guys, I actually do use OneDrive, and I am not trying to remove the app entirely. However, it seems like if I remove the OneDrive folder from my libraries (music, pictures, documents), next boot they show right back up. This is...
How to Add or Remove Folders on Start List in Windows 10 The Start menu in Windows 10 has a Start list that you can customize which folders appear in the list. You can add or remove the File Explorer, Settings, your Documents, your Downloads,...
44427 I was wondering/can't figure out if I can hide the desktop library and other things from the file explorer. Is it possible? Thanks!
I have my Documents, Contacts, Downloads, Pictures, Music and Videos folders located on my HDD (E:/), but I still show the same folders on C: drive but they're all empty. Is it safe to delete these folders since they're located & pointed to on the...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:20.
Find Us