The script can be used in a scheduled task or any other automation app that you use. Using a batch script to force clear clipboard content has an additional advantage automation. In either case, this is a simple solution. This method isn’t as simple as copying something else to the clipboard but often, you may not want to have to copy anything to it or you may not have something on hand that can be copied. You can set up a keyboard shortcut to run the script if you often need to clear the clipboard content. Any time you want to clear the clipboard, double-click the file to run the script and everything from the clipboard will be cleared. To use a batch script, open a new Notepad file and paste the same command given above. You don’t need admin rights to run the command so a Command Prompt window with normal user rights will do. It will clear everything from the clipboard whether it’s a file or text.
Open Command Prompt and run the following command.