Hello everyone. I just have a simple question with command prompt in Windows 7. Is there any command that copies the text from a file onto the clipboard so I can paste it somewhere? All I want to do is start the batch file and press Control-V. Solutions?

Recommended Answers

All 5 Replies

Thank you for replying but that is not what I am looking for. I don't want to put the output into a text document. I want the batch file to literally highlight all of the text in a text document, right click, and then click on Copy.

The contents of a file can be displayed using the 'type' command. You can then redirect output to the clipboard with a pipe, e.g. c:\type example.txt | clip

you cant use control and V. What I do is a right click in the command prompt and click paste. Sounds stupid, but it has worked for me.

AffineMesh, your method worked perfectly. Thank you all so much for the help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.