If you are using a public PC or sharing your Windows user account with some friend or family member, you might be interested in making sure that your clipboard (data which you have cut or copied) is empty after you leave your PC. This will ensure that you do not leave any private information in the clipboard. It is very easy to perform this operation without using any third party tool, as Windows includes all the necessary tools out of the box.
Here you go:
- Press Win + R shortcut keys together on your keyboard to open the Run dialog. Tip: See the ultimate list of all Windows keyboard shortcuts with Win keys if you are interested).
- Type the following in the Run box:
cmd /c echo.|clip
- Press Enter on the keyboard to execute the command. Your clipboard data will be emptied.
You can create a shortcut to run this command faster and place it on the Desktop. This will save your time.
Alternatively, you can assign a global hotkey to the shortcut you create to access it directly from any app as described in this article: Add global hotkeys to launch your favorite applications in Windows 8.1.
See also How to copy the command prompt output directly to the Windows clipboard for more details.
This trick works in Windows Vista, Windows 7 and Windows 8.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
… or just type any symbol in closest text bar and copy it.
Yep, will also work for sure :)
Actually it copies a new line (CR+LF)
a better way is:
Echo|Set/p=|Clip
Thanks! Very nice solution.
We even have this trick covered in detail: How to make the echo command without new line in Windows
This is no longer necessary for Windows 10 as they already have builtin function to access the clipboard. You can just used Windows Key + V.