Skip to content

Instantly share code, notes, and snippets.

@markbosky
Created April 5, 2017 21:12
Show Gist options
  • Save markbosky/c971881bed41daea4064caa3114665d6 to your computer and use it in GitHub Desktop.
Save markbosky/c971881bed41daea4064caa3114665d6 to your computer and use it in GitHub Desktop.
Useful Windows Shortcuts / Tips / Snippets

Copy / Output Entire List of Filenames from Directory (Windows)

  1. Hold the "Shift" key, right-click the folder containing a list of files and select "Open Command Window Here."
  2. Type "dir /b > filenames.txt" (without quotation marks) in the Command Prompt window. Press "Enter."
  3. Double-click the "filenames.txt" file from the previously selected folder to see a list of file names in that folder.
  4. Press "Ctrl-A" and then "Ctrl-C" to copy the list of file names to your clipboard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment