Solved How to view full list of "Folders" only not all files


SweetHeart88

New member
Local time
7:00 AM
Posts
10
OS
Windows 11
I want to view all folders that are inside each main folder on my "External Hard Drive" but can't figure out how to. Here is what I'm trying to do:
(1) I left click on the external hard drive the drive opens I see (2) folders and then I open the first folder inside the File Explorer in a new tab.
(2) Now I have (325) items. Which are each "Movies" here is how the movies look: "Title (YEAR)" and so on for each one until you reach the end which is currently at (325).

Inside each of the "Main Movie Folders" are (4) extra folders:
Folder> .actors "Inside could be random number of images based on "Movie" and amount of actors/actresses" ".jpg files"
Folder> extrafanart "Same as above"
Folder> extrathumb "Same as above"
Folder> Random Text < This needs to be changed to "Featurettes" without the double quotes "Inside this folder is only 1 file a .mp4 file" which will be renamed "Trailer".

I'm trying to find a way to see all the folders inside each main folder at once but can't figure out how to.

When I go to "File Explorer" after opening the new tab I see (325) folders I would like to be able to see the inside folders as well. I have "Check-box's" selected on the "File Explorer" so the plan is to be able to see all the folders like this:
Folder 1 "Movie Title (YEAR)"
Folder 2 ".actors"
Folder 3 "extrafanart"
Folder 4 "extrathumbs"
Folder 5 "Random Text"
Folder 6 "Movie title (YEAR)"
Folder 7 ".actors"
and repeat until all folders are shown. And Then I would "Check the Check-box's" for the "Random Text" Folders and "Rename" all them folders at once "Featurettes". And then once all that would be done I would rename all the file inside each folder the same word "Trailer.mp4". And then all is done.

File explorer would be a easy way for me to do this if possible. Or is there a free program that has a way to use "Check-box's" so I can select multiple folders at once. Basically I need to find and select multiple folders all from the "Movies" folder inside the "G" drive and then rename all the .mp4 files that will appear inside the newly renamed "Featurettes" folder. I hope this makes sense if not is there a way to do a batch file script to look for the folders inside each main movie folder and exclude the ".actors", "extrafanart" and "extrathumbs" and rename the 4th folder with random text. I really hope to find a way to to this so I don't have to do it folder by folder file by file.
 
Windows Build/Version
23H2

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Lenovo Ideapad 1I
You can easily do this from a command prompt.

Run the command dir /ad to list only directories (folders). Use dir /ad /s to include subdirectories.

Another way to show the same information, but in a really nice, clean format is to simply issue the tree command.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Here's how I would do it in PowerShell. The top line assumes the root folder is G:\Movies, so change that to whatever the root folder actually is. By that, I mean the folder that contains the 325 movies.

Also, the line that says Rename-Item doesn't actually do anything, for safety reasons. It will just show you what it would do. If you run this script and are satisfied it will do what you want, take off the -WhatIf.

Powershell:
# Get the directories inside G:\Movies
Get-ChildItem -Path "G:\Movies" -Directory -ErrorAction SilentlyContinue |
ForEach-Object {
    # Get the directories inside each folder.
    Get-ChildItem -Path $_.FullName -Directory |
    # Exclude certain folder names.
    Where-Object { $_.Name -notin @('.actors', 'extrafanart', 'extrathumbs') } |
    # Rename the folder to Featurettes.
    Rename-Item -NewName 'Featurettes' -WhatIf
}
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2 [rev. 8893]
OS
Windows 11 Enterprise 25H2 [rev. 8893]
Here's how I would do it in PowerShell. The top line assumes the root folder is G:\Movies, so change that to whatever the root folder actually is. By that, I mean the folder that contains the 325 movies.

Also, the line that says Rename-Item doesn't actually do anything, for safety reasons. It will just show you what it would do. If you run this script and are satisfied it will do what you want, take off the -WhatIf.

Powershell:
# Get the directories inside G:\Movies
Get-ChildItem -Path "G:\Movies" -Directory -ErrorAction SilentlyContinue |
ForEach-Object {
    # Get the directories inside each folder.
    Get-ChildItem -Path $_.FullName -Directory |
    # Exclude certain folder names.
    Where-Object { $_.Name -notin @('.actors', 'extrafanart', 'extrathumbs') } |
    # Rename the folder to Featurettes.
    Rename-Item -NewName 'Featurettes' -WhatIf
}
This did exactly what I needed it to do. I will keep this code for later inside the notepad on my PC with some notes in case I need to do another big job with renaming the featurettes folder.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Lenovo Ideapad 1I
Is there a way to similarly rename multiple files the same names. I now need to name each file inside the "Featurettes" folders the same name which would be "Trailer". Is there another quick way to do this.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Lenovo Ideapad 1I
Powershell:
Get-ChildItem -Path "G:\Movies" -Filter 'Featurettes' -Directory -Recurse -ErrorAction SilentlyContinue |
ForEach-Object {
    Get-ChildItem -Path $_.FullName -Filter '*.mp4' | Rename-Item -NewName 'Trailer.mp4' -WhatIf
}
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2 [rev. 8893]
OS
Windows 11 Enterprise 25H2 [rev. 8893]

My Computers My Computers

  • At a glance

    Win 11 Home ♦♦♦26200.8875 ♦♦♦♦♦♦♦25H2AMD Ryzen 7 3700XG.Skill (F4-3200C14D-16GTZKW)EVGA RTX 2070 (08G-P4-2171-KR)
    OS
    Win 11 Home ♦♦♦26200.8875 ♦♦♦♦♦♦♦25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 5302)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Total Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • At a glance

    Windows XP Pro 32bit w/SP3AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Keyboard
    Logitech Classic Keybooard 200
    Mouse
    Logitech Optical M-BT96a
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 15 years?
Powershell:
Get-ChildItem -Path "G:\Movies" -Filter 'Featurettes' -Directory -Recurse -ErrorAction SilentlyContinue |
ForEach-Object {
    Get-ChildItem -Path $_.FullName -Filter '*.mp4' | Rename-Item -NewName 'Trailer.mp4' -WhatIf
}
This bit of code also did the trick thank you for the help. Now all of the "Trailer Folders" have been renamed and the ".mp4 Files" inside the folders have also been renamed. This was a big help.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
Lenovo Ideapad 1I
Awesome, glad I could help. :-)
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2 [rev. 8893]
OS
Windows 11 Enterprise 25H2 [rev. 8893]
Back
Top Bottom