top of page

Clip to get results of Windows command


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 All
backup mode for robocopy

When 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...

 
 

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

​

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

​

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page