Windows 10: I want to clear the clipboard history in a batch file.

Discus and support I want to clear the clipboard history in a batch file. in Windows 10 Customization to solve the problem; The following script was given to clear the clipboard, but it doesn't work when clipboard history is enabled: %windir%\System32\cmd.exe /c "echo off... Discussion in 'Windows 10 Customization' started by jim_bob_, Jul 7, 2024.

  1. jim_bob_ Win User

    I want to clear the clipboard history in a batch file.


    The following script was given to clear the clipboard, but it doesn't work when clipboard history is enabled: %windir%\System32\cmd.exe /c "echo off clip"wmic service where "name like '%%cbdhsvc_%%'" call stopservicewmic service where "name like '%%cbdhsvc_%%'" call startserviceI know the clipboard history can be cleared in Settings, but I want to do it as a shortcut on the desktop, or in a scriptProduct is Windows 10

    :)
     
    jim_bob_, Jul 7, 2024
    #1

  2. Clipboard history not being displayed.

    Hello all!

    Currently experiencing an issue with the clipboard, in which the clipboard history is showing as empty when using the Win + V key-bind.

    Here is a list of everything I have tried in order to fix this:

    Switching the clipboard history on and off

    Clearing clipboard history

    Restarted File Explorer from Task Manager

    Restarting clipboard service in services.msc
    Creating new DWORD value in regedit

    Enabled 'Allow Clipboard History' in GPedit

    So far, nothing has shown any signs of working and I cannot find anything else online which might help with this.

    For context, copy and paste still functions normally, the only problem is, at the moment, there is absolutely no way to view the clipboard history.

    Many thanks,

    Will
     
    Will Davey1, Jul 7, 2024
    #2
  3. Bree Win User
    Clear command prompt history from within batch.

    No and Yes.

    You can set the size of the list of remembered commands to zero. This will clear all the history, but will also turn off recording any further history. So you should then set a size for the list. Use the command DOSKEY /LISTSIZE=0 after the line prompting for the password. eg..

    Code:
     
    Bree, Jul 7, 2024
    #3
  4. fatkatie Win User

    I want to clear the clipboard history in a batch file.

    Clear command prompt history from within batch.

    I have a batch, running in "Command Prompt", that prompts for a password. For any number of reasons I can't guarantee that the window will close before exposing that data (arrow keys browse history list).

    Is there a way to keep the password out of the list or is there a way to clear the list from within the batch itself?

    Thank you.
     
    fatkatie, Jul 7, 2024
    #4
Thema:

I want to clear the clipboard history in a batch file.

Loading...
  1. I want to clear the clipboard history in a batch file. - Similar Threads - clear clipboard history

  2. I want to clear the clipboard history in a batch file.

    in Windows 10 Gaming
    I want to clear the clipboard history in a batch file.: The following script was given to clear the clipboard, but it doesn't work when clipboard history is enabled: %windir%\System32\cmd.exe /c "echo off clip"wmic service where "name like '%%cbdhsvc_%%'" call stopservicewmic service where "name like '%%cbdhsvc_%%'" call...
  3. I want to clear the clipboard history in a batch file.

    in Windows 10 Software and Apps
    I want to clear the clipboard history in a batch file.: The following script was given to clear the clipboard, but it doesn't work when clipboard history is enabled: %windir%\System32\cmd.exe /c "echo off clip"wmic service where "name like '%%cbdhsvc_%%'" call stopservicewmic service where "name like '%%cbdhsvc_%%'" call...
  4. Windows Explorer - Clear File Explorer History, does not clear history

    in Windows 10 Gaming
    Windows Explorer - Clear File Explorer History, does not clear history: In Windows 11 Enterprise Edition when going to:Win+EThree DotsOptionsTab "General"Section "Privacy"Button "Clear"The expectation is that using the Clear button will erase all File Explorer History. However when pressing the Clear button nothing is being erased and all files...
  5. Windows Explorer - Clear File Explorer History, does not clear history

    in Windows 10 Software and Apps
    Windows Explorer - Clear File Explorer History, does not clear history: In Windows 11 Enterprise Edition when going to:Win+EThree DotsOptionsTab "General"Section "Privacy"Button "Clear"The expectation is that using the Clear button will erase all File Explorer History. However when pressing the Clear button nothing is being erased and all files...
  6. Clipboard History

    in Windows 10 Customization
    Clipboard History: I'm troubled in syncing my clipboard history to other devices. How can it be solved? https://answers.microsoft.com/en-us/windows/forum/all/clipboard-history/e56b5433-5abc-4110-be57-466e38e7c8d6
  7. Clearing File History Drive

    in Windows 10 Backup and Restore
    Clearing File History Drive: I use File History, Windows 10 2004. Over time, the File History drive gets full. Often that's because some folders have got very large and I no longer need them in the backup. I want to remove these folders from the backup drive (not just stop them being backed up to the...
  8. Is there a batch file to clear Event Viewer?

    in Windows 10 Support
    Is there a batch file to clear Event Viewer?: I have one for Windows 7 and I was wondering if there was one out to clear the Event Viewer in Win 10 Home x64? OS Version10.0.18363.836 (Win10 19H2 [1909] November 2019 Update) I've just gotten Win 10 to behave as I like, but all the tweaking and restoring from backups,...
  9. Clear command prompt history from within batch.

    in Windows 10 Support
    Clear command prompt history from within batch.: I have a batch, running in "Command Prompt", that prompts for a password. For any number of reasons I can't guarantee that the window will close before exposing that data (arrow keys browse history list). Is there a way to keep the password out of the list or is there a way...
  10. how to clear files on clipboard

    in Windows 10 BSOD Crashes and Debugging
    how to clear files on clipboard: how to clear files on clipboard https://answers.microsoft.com/en-us/windows/forum/all/how-to-clear-files-on-clipboard/0380d4c3-0836-470b-a815-5d0c21969979