Tuesday, August 8, 2017

Copy all Filenames in a Directory to a Text File or Copy to clipboard

1. Open up your command prompt by typing cmd in the run dialog box and hitting Enter.
2. Navigate to the directory which has the files and type the following command -
DIR /B /O:N > filename.txt
This will save all the filenames in the current directory to a text file. The text file will be saved in the same directory.
3. To save file names from any sub-directories in the current folder, just add /S like -
DIR /B /O:N /S > filename.txt



How to Copy a Folder’s File List with a Right-Click



Regedit
HKEY_CLASSES_ROOT\Directory\shell
New > Key ---- Name the new key “copylist.”
 double-click the (Default)--- “Value data” box to “Copy File List to Clipboard” 
New > Key. Name the new key “command.”
 double-click the (Default)--- “Value data” box to “cmd /c dir "%1" /b /a:-d /o:n | clip” 
https://www.howtogeek.com/howto/windows-vista/create-a-context-menu-item-to-copy-a-list-of-files-to-the-clipboard-in-windows-vista/

No comments:

Post a Comment

Encrypt/Decrypt the App.Config

Program.cs using System; using System.Diagnostics; using System.IO; namespace EncryptAppConfig {     internal class Program     {         pr...