is there a batch file or utility to send contents of a folder to a text file ?

Discussion in 'other software & services' started by garry35, Oct 19, 2022.

  1. garry35

    garry35 Registered Member

    Joined:
    Jan 20, 2009
    Posts:
    480
    is there a batch file or utility to send contents of a folder to a text file ? ie so you can select a folder and have a listing of its contents eg music, pictures, movies etc
     
  2. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    5,931
  3. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,811
    Location:
    .
    @garry35

    I have a context menu tweak with several variants to perform a copy function for files and folders
    Code:
    Windows Registry Editor Version 5.00
    
    ; Created by: xCyBx
    ; Modifications by: Mr.X
    ; https://forums.mydigitallife.net/members/xcybx.1119049/
    
    
    [-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]
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu1]
    @="Copy File Names Only"
    "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"
    
    
    
    ; Copy Folder Names with Paths
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu2]
    @="Copy Folder Names with Paths to Clipboard"
    "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 /s | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu3]
    @="Copy Folder Names with Paths to Text File"
    "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>FolderNames_Paths_List_%%Random%%.txt"
    
    
    
    ; Copy File Names with Paths
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu4]
    @="Copy File Names with Paths to Clipboard"
    "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 | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu5]
    @="Copy File Names with Paths to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu5\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\menu6]
    @="Copy File Names with Paths and Details to Clipboard"
    "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 | clip"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu7]
    @="Copy File Names with Paths and Details to Text File"
    "Icon"="%SystemRoot%\\System32\\imageres.dll,157"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyList\Shell\menu7\command]
    @="cmd.exe /c dir \"%1\" /a:-d /o:n /s>FileNames_Paths_Details_List_%%Random%%.txt"
    
    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOT\Directory\shell\CopyList]
    

    ss.png
     
    Last edited: Oct 19, 2022
  4. FanJ

    FanJ Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    4,660
  5. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    Hi
    very nice , i have always used total commander
    thanks for sharing!
     
  6. Trooper

    Trooper Registered Member

    Joined:
    Jan 26, 2005
    Posts:
    5,508
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.