Clip to get results of Windows command
- Sean O'Shea
- Oct 20, 2016
- 1 min read
I have been familiar for a long time of the function in a windows command of the greater than sign. It directs the results of a command to a text file. So for example with the common command to list the contents of a directory (see the very first Tip of the Night) the command 'dir' followed by the operator '/b' (to restrict the generated list to just the file names in root folder in which the command is entered) is followed by >list.txt to direct the list to the named text file. However you can save yourself some trouble by instead just directing the list to your clipboard. Enter the command with a pipe then 'clip' at the end.

Now you will get a list of the files in the c:\helloworld directory on your clipboard that you can paste anywhere.
Recent Posts
See AllWhen using robocopy command in Windows to copy files, note that if you are an admin you can use the /B switch to copy files from...