- Home
- Windows XP
- General
- How to clear the clipboard contents?
To quickly clear the text/image contents from the clipboard, simply select a file in the Desktop and press CTRL+C. The existing clipboard contents will now be replaced by the file name on which you issued the CTRL+C.
Another method is using Windows Scripting. You can create an instance of InternetExplorer.Application object and then manipulate the clipboard.
Copy the following lines to Notepad, and save as ClearClipBoard.VBS. Double-clicking the ClearClipBoard.VBS clears the contents of the clipboard.
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
objIE.document.parentwindow.clipboardData.SetData "text", ""
objIE.Quit
objIE.Navigate("about:blank")
objIE.document.parentwindow.clipboardData.SetData "text", ""
objIE.Quit
If you enjoyed this post, make sure you
subscribe to our RSS feed!
We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?
1 Response to "How to clear the clipboard contents?" 
|
said this on 27 Aug 2008 2:22:04 PM PST
This also works.
Method 1: Press the space key on the keyboard then copy that to the clipboard, so when ever you paste something a space will be pasted.
Method 2: Type ALT + 255 in a text field then copy that. ALT + 255 is the ascii code for a empty character.
|

Author)