Copy Folder Names of all folders option in Context Menu

Discussion in 'Scripting' started by bundyal, Jun 26, 2022.

  1. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    Try this :
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu1]
    @="Copy Files and Folders Names"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu1\command]
    @="cmd.exe /c dir \"%1\" /b /o:n /s | clip"
    Not this

    The difference with /s argument in command .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,645
    270
    Tried it.
    It's good but I'd like more something like this result
    Song - Copy (2).mp3
    Song - Copy (3).mp3
    Song - Copy (4).mp3
    Song - Copy (5).mp3
    Song - Copy (6).mp3
    Song - Copy.mp3
    Song.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase
    01. Shouting Fire at a Funeral.mp3
    02. Opulent Maelstrom.mp3
    03. Jato Unit.mp3
    04. Azure Haze.mp3
    05. Cashmere Shiv.mp3
    06. Race against Disaster.mp3
    07. Sacristy.mp3
    08. Devil Theory.mp3
    09. Miles of Machines.mp3
    10. Departure.mp3
    Personnel.txt
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\subfolder 1
    Song - Copy.mp3
    Song.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion
    01. Mercurial (backing track).mp3
    01. Mercurial (Feat. Marty Friedman).mp3
    02. The Ultimatum (backing track).mp3
    02. The Ultimatum (Feat. Tony Macalpine).mp3
    03. Escape Velocity (backing track).mp3
    03. Escape Velocity.mp3
    04. Tragedy And Harmony (backing track).mp3
    04. Tragedy And Harmony.mp3
    05. Requiem For The Living (backing track).mp3
    05. Requiem For The Living (Feat. Attila Vörös).mp3
    06. Continuum Drift (backing track).mp3
    06. Continuum Drift (Feat. Chris Poland).mp3
    07. Surrender (backing track).mp3
    07. Surrender.mp3
    08. Chosen Time (backing track).mp3
    08. Chosen Time.mp3
    09. Rapture (backing track).mp3
    09. Rapture.mp3
    10. Sibylline Origin (backing track).mp3
    10. Sibylline Origin.mp3
    11 Collide.mp3
    12 Reverie For Eternity.mp3
    Personnel.txt
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2013] Requiem For The Living (EP)
    01. Requiem For the Living.mp3
    02. A Liar's Chain.mp3
    03. Speak of Nothing.mp3
    04. Glass Roots.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia
    01. Prelude To Obliteration.mp3
    02. Tethys.mp3
    03. Ashes Of Lesser Men.mp3
    04. Doomsday Clock.mp3
    05. Inexhaustible Savagery.mp3
    06. Totalitarian Sphere.mp3
    07. Lachrymose.mp3
    08. Autarch.mp3
    09. Nuclear Justice.mp3
    10. Kufra At Dusk.mp3
    11. Resurrection In Black.mp3
    12. Destroyer Of Dreams.mp3
    Personnel.txt

    Your reg has this output
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2013] Requiem For The Living (EP)
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song - Copy (2).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song - Copy (3).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song - Copy (4).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song - Copy (5).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song - Copy (6).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song - Copy.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\Song.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\01. Shouting Fire at a Funeral.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\02. Opulent Maelstrom.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\03. Jato Unit.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\04. Azure Haze.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\05. Cashmere Shiv.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\06. Race against Disaster.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\07. Sacristy.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\08. Devil Theory.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\09. Miles of Machines.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\10. Departure.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\Personnel.txt
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\subfolder 1
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\subfolder 1\Song - Copy.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2008] Zero Order Phase\subfolder 1\Song.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\01. Mercurial (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\01. Mercurial (Feat. Marty Friedman).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\02. The Ultimatum (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\02. The Ultimatum (Feat. Tony Macalpine).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\03. Escape Velocity (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\03. Escape Velocity.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\04. Tragedy And Harmony (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\04. Tragedy And Harmony.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\05. Requiem For The Living (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\05. Requiem For The Living (Feat. Attila Vörös).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\06. Continuum Drift (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\06. Continuum Drift (Feat. Chris Poland).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\07. Surrender (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\07. Surrender.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\08. Chosen Time (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\08. Chosen Time.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\09. Rapture (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\09. Rapture.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\10. Sibylline Origin (backing track).mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\10. Sibylline Origin.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\11 Collide.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\12 Reverie For Eternity.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2012] Plains of Oblivion\Personnel.txt
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2013] Requiem For The Living (EP)\01. Requiem For the Living.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2013] Requiem For The Living (EP)\02. A Liar's Chain.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2013] Requiem For The Living (EP)\03. Speak of Nothing.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2013] Requiem For The Living (EP)\04. Glass Roots.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\01. Prelude To Obliteration.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\02. Tethys.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\03. Ashes Of Lesser Men.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\04. Doomsday Clock.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\05. Inexhaustible Savagery.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\06. Totalitarian Sphere.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\07. Lachrymose.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\08. Autarch.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\09. Nuclear Justice.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\10. Kufra At Dusk.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\11. Resurrection In Black.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\12. Destroyer Of Dreams.mp3
    D:\Desktop\TORRENT DOWNLOADS\_Jeff Loomis\[2014] Conquering Dystopia\Personnel.txt
     
  3. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    It's complicated to make it with cmd.exe commands and registry entries, Need more technical in c# or powershell or something like that.
    Sorry dude I can't help you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,645
    270
    Yeah that's what I "feared" lol
    No worries, thank you so much for your nice reg file.
    I think I'm going to make some modifications to have both options, copy to clipboard and generate a txt file with all options.
     
  5. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    I'm really sorry, I can't help you.

    I hope to you reach your perfect option at last.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,645
    270
    #26 Mr.X, Oct 20, 2022
    Last edited: Oct 20, 2022
    Take a look at my mod hahahaha, hope you like it. Please run some test and see if I did anything wrong.
    Code:
    Windows Registry Editor Version 5.00
    
    
    [-HKEY_CLASSES_ROOT\Directory\shell\CopyList]
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList]
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    "MUIVerb"="Copy File/Folder List"
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell]
    
    
    
    ; Copy File Names Only Not Recursively
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu1]
    @="Copy File Names Only Not Recursively to Clipboard"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu1\command]
    @="cmd.exe /c dir \"%1\" /a:-d /b /o:n | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu2]
    @="Copy File Names Only Not Recursively to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu2\command]
    @="cmd.exe /c dir \"%1\" /a:-d /b /o:n >FileNames_Only_List_%%Random%%.txt"
    
    
    
    ; Copy File Names with Paths
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu3]
    @="Copy File Names with Paths to Clipboard"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu3\command]
    @="cmd.exe /c dir \"%1\" /a:-d /b /o:n /s | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu4]
    @="Copy File Names with Paths to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu4\command]
    @="cmd.exe /c dir \"%1\" /a:-d /b /o:n /s>FileNames_Paths_List_%%Random%%.txt"
    
    
    
    ; Copy File Names with Paths and Details
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu5]
    @="Copy File Names with Paths and Details to Clipboard"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu5\command]
    @="cmd.exe /c dir \"%1\" /a:-d /o:n /s | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu6]
    @="Copy File Names with Paths and Details to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu6\command]
    @="cmd.exe /c dir \"%1\" /a:-d /o:n /s>FileNames_Paths_Details_List_%%Random%%.txt"
    
    
    
    ; Copy Folder Names with Paths
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu7]
    @="Copy Folder Names with Paths to Clipboard"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu7\command]
    @="cmd.exe /c dir \"%1\" /a:d /b /o:n /s | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu8]
    @="Copy Folder Names with Paths to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu8\command]
    @="cmd.exe /c dir \"%1\" /a:d /b /o:n /s>FolderNames_Paths_List_%%Random%%.txt"
    
    
    
    ; Copy Files and Folders Names
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu9]
    @="Copy Files and Folders Names to Clipboard"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu9\command]
    @="cmd.exe /c dir \"%1\" /b /o:n /s | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu99]
    @="Copy Files and Folders Names to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu99\command]
    @="cmd.exe /c dir \"%1\" /b /o:n /s>Files_and_Folder_Names_List_%%Random%%.txt"
    
    
     
  7. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    ; Created by: xCyBx Mr.X
    ; Modifications by: Mr.X

    Good I will use this in my windows :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,645
    270
    #28 Mr.X, Oct 20, 2022
    Last edited: Oct 20, 2022
    Allright I understand you don't want your name on it. Fine. :)

    But I want to give you some credits. I edited the post, go see if that's ok for you...
     
  9. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    It's your credits not me, The whole code wrote by you (@Mr.X ) not me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,645
    270
    OK done.