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

Discus and support How to remove all folders of the 2. hierarchy which have only 1 subfol in Windows 10 Software and Apps to solve the problem; 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... Discussion in 'Windows 10 Software and Apps' started by Bingus, Mar 31, 2016.

  1. Bingus Win User

    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

    :)
     
    Bingus, Mar 31, 2016
    #1

  2. My desktop icons dissapeared from explorer view but not in desktop

    The desktop (background) is comprised of these objects:

    1. Files and folders in user's desktop folder

    2. Files and folders in common or Public\Desktop folder

    3. Shell objects implemented in per-user Desktop namespace

    4. Shell objects implemented in per-system Desktop namespace

    Whereas the folder view shows only items in #1 above. To see the consolidated view of complete desktop namespace, in File Explorer View tab, click Navigation pane, and enable Show all folders.

    This changes the hierarchy in navigation pane to:

    Desktop

    ->OneDrive

    ->This PC

    ->Libraries

    ->Removable drives

    ->Network

    ->Homegroup

    etc..

    So, clicking Desktop which is at the top of the hierarchy will show the consolidated view, populating entries from all the 4 locations specified above.
     
    Ramesh Srinivasan, Mar 31, 2016
    #2
  3. Pluschap Win User
    File sharing without Homegroups

    I have 2 Windows 10 computers and one windows 8.1 (can't update it to windows 10, because it has a Micro SD reader that doesn't have drivers for WIn 10).

    All 3 machines are Ethernet Cat5 connected

    Homegroup support is being withdrawn for Windows 10.

    With no Homegroup, I can't access anything on the Win 8.1 machine that is not in the Users/Public hierarchy from either Win10 machine.

    The laptop Win10 computer thinks there is a Homegroup, but it can't see any other Homegroup machines. Nothing happens when I click "View or print the Homegroup password" or "Change the password", and when I try to have it leave the home group, I get the
    error message "Windows couldn't remove your computer from the Homegroup"

    The samelaptop sees only the Win8.1 machine on the network. It can only access the /Users/Public hierarchy on the Win8.1 machine. However, both the other machines can see the laptop.

    The primary login on both Win10 machines uses the same name and password.

    There is a Microsoft community conversation which says that deleting C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\PeerNetworking\idstore.sst allows me to exit the home group. Leaving aside the fact that there is no
    AppData in this hierarchy, there is no idstore.sst file anywhere in the
    c:\Windows hierarchy on the laptop. There are idstore.sst.new and idstore.sst.ldk files. Deleting both of these files, and then rebooting the machine, changes nothing.

    SO, what do I need?

    1) How do I set up my network so that I can share files between all 3 computers without having to do everything through the Users/Public file hierarchy?

    and

    2) How do I remove my laptop from a Homegroup that nobody else can access?
     
    Pluschap, Mar 31, 2016
    #3
Thema:

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

Loading...
  1. How to remove all folders of the 2. hierarchy which have only 1 subfol - Similar Threads - remove folders hierarchy

  2. I have 2 English keyboards but only 1 installed

    in Windows 10 Gaming
    I have 2 English keyboards but only 1 installed: This isn't actually a question, I found a fix and wanted to share it.Go to Time & language>Language & region.If the extra keyboard isn't there do the following:Set "Windows display language" as the extra keyboard.After it appears change back to your desired setting.Pick one...
  3. I have 2 English keyboards but only 1 installed

    in Windows 10 Software and Apps
    I have 2 English keyboards but only 1 installed: This isn't actually a question, I found a fix and wanted to share it.Go to Time & language>Language & region.If the extra keyboard isn't there do the following:Set "Windows display language" as the extra keyboard.After it appears change back to your desired setting.Pick one...
  4. I have 2 files in the same folder which differ only in the case of the first letter

    in Windows 10 Network and Sharing
    I have 2 files in the same folder which differ only in the case of the first letter: After trying to load drivers for a USB to Serial adapter I have been left with 2 "System32" folders in the "Windows" folder - one is called "system32" and the other is "System32". The "system32" folder was created recently and contains the same file names as the "System32"...
  5. I have 2 files in the same folder which differ only in the case of the first letter

    in Windows 10 Gaming
    I have 2 files in the same folder which differ only in the case of the first letter: After trying to load drivers for a USB to Serial adapter I have been left with 2 "System32" folders in the "Windows" folder - one is called "system32" and the other is "System32". The "system32" folder was created recently and contains the same file names as the "System32"...
  6. I have 2 files in the same folder which differ only in the case of the first letter

    in Windows 10 Software and Apps
    I have 2 files in the same folder which differ only in the case of the first letter: After trying to load drivers for a USB to Serial adapter I have been left with 2 "System32" folders in the "Windows" folder - one is called "system32" and the other is "System32". The "system32" folder was created recently and contains the same file names as the "System32"...
  7. 2 HDMI ports only 1 works

    in Windows 10 Drivers and Hardware
    2 HDMI ports only 1 works: Intel i7-9700F @ 3GHz 16 GB RAM NVIDIA GeForce GTX 1660 Ti I have one Monitor hooked up works fine and I'm attempting to hook up a 2nd monitor to the 2nd HDMI display port on the PC yet NOTHING happens. Both HDMI cables and Both Monitors work when using the initial...
  8. In Onedrive cloud all my photos have lost the folder hierarchy

    in Windows 10 Support
    In Onedrive cloud all my photos have lost the folder hierarchy: Hi Newbie here after searching for help on your forum. I am running window 10 ver. 1903 64 bit. I had all of my photos in the Pictures folder on my PC in in seperate folders showing when they were taken and location for retrieval purposes. I decided to use Onedrive to...
  9. Switching which monitor is 1 or 2

    in Windows 10 Ask Insider
    Switching which monitor is 1 or 2: I would like to switch which monitor is 1 or 2 in a dual monitor setup. I realize I can select which monitor is my default monitor but this is not sufficient. When I use windows key+P If I choose "computer monitor" it does not go to my default monitor. The other issue is,...
  10. Weird folder hierarchy in File Explorer.

    in Windows 10 Network and Sharing
    Weird folder hierarchy in File Explorer.: I have Windows 10 version 1903. The file structure as revealed by File Explorer seems to be recursive. This is so because, in File Explorer, DESKTOP contains THISPC which contains DESKTOP, which is shown to be at the top of the folder directory tree, so that DESKTOP...