If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Tutorial for creating cclip & killall clearing the Windows clipboard & killing users' tasks in one fell swoop
Tutorial on how to create a free cclip (clear clipboard) command on Windows
(As always, please improve so that everyone benefits from your input.) Given that, at least on mobile devices, free software that should NOT be reading your clipboard _is_ reading your clipboard, it behooves us to consider automatic and/or manual deletion of the clipboard contents. o Copy, paste catastrophe: how Apple's iOS 14 disrupted clipboard espionage https://groups.google.com/forum/#!topic/misc.phone.mobile.iphone/NehSRB4Ka-8 For clipboard contents manual deletion: o Win+R cmd echo off | clip For clipboard contents auto deletion freewa o https://www.majorgeeks.com/files/details/clipttl.html *Here's a method I just implemented & documented for others to benefit*. 1. Create a shortcut named cclip.lnk (i.e., clean clipboard): Use any hierarchy you like; I put mine in my system "Run" directory: C:\data\sys\run\cclip.lnk TARGET = %comspec% /c "echo off | clip" START IN: C:\Windows\system32 2. If desired, create a "cclip" command using the AppPaths key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ap p Paths\ New Key === cclip.exe Default === C:\data\sys\run\cclip.lnk Note: The key name can be anything you want it to be (as long as it ends with ".exe") Note: There could be, but on my system, there is no file actually named 'cclip.exe' (as it's just a keyword). Now you can easily execute the command using the Run window: o Win+R cclip 3. If desired, set the link icon to something easily distuinguished. Use any hierarchy you like; I put mine in my system "Icon" directory: C:\data\sys\icon\cclip.ico For example, I created this icon in a minute using Irfanview: https://i.postimg.cc/cCQsDxy3/cclip01.jpg Note: You can obtain free icons from a billion locations on the net: https://stock.adobe.com/search?filters[orientation]=square&k=clipboard https://www.iconspedia.com/search/clipboard/ https://www.flaticon.com/free-icons/copy-clipboard https://www.iconfinder.com/search/?q=clipboard https://icons8.com/icon/set/no-clipboard/win10 https://iconarchive.com/tag/window-clipboard etc. 4. If desired, pin that icon to the taskbar for quick access. 5. If desired, you can combine multiple commands as needed, e.g., TARGET = %comspec% /k [1st command] & [2nd command] & [3rd command]... For example (based on "killall.bat" examples found in alt.msdos.batch): SHORTCUT = killall.lnk TARGET = %comspec% /c "echo off | clip" & veracrypt /dismount /force /q & taskkill /f /fi "USERNAME eq %COMPUTERNAME%\%USERNAME%" /IM * See also: o What syntax combines 2 commands into a single shortcut TARGET line? https://groups.google.com/forum/#!topic/alt.msdos.batch/azQbz6D_v0Y See also this (untested by me) ctask.bat found in alt.msdos.batch when I searched for pre-existing solutions before writing this tutorial: o http://tinyurl.com/alt-msdos-batch === cut below for ctask.bat === @echo off REM alt.msdos.batch Todd Message-ID: title Kill all running apps - Bharat Balegere - AgniPulse.com cd c:\windows\System32 for /f "skip=3 tokens=1" %%i in ('TASKLIST /FI "USERNAME eq %userdomain%\%username%" /FI "STATUS eq running"') do ( if not "%%i"=="svchost.exe" ( if not "%%i"=="explorer.exe" ( if not "%%i"=="cmd.exe" ( if not "%%i"=="tasklist.exe" ( if not "%%i"=="VBoxTray.exe" ( echo. taskkill /f /im "%%i" echo. ) ) ) ) ) ) cd \ntutil rem pause === cut above for ctask.bat === As always, please improve this nascent tutorial with purposefully helpful suggestions so that everyone benefits from every action you take on Usenet. -- Usenet is a web searchable archive of useful tutorials & solutions. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|