making a "CTRL-C" clipboard TXT file to save its history then pulls UP its contents
Posted: 02 Mar 2025 09:41
Clip4TB-append.txt has like the below
before
*****-----
1
*****-----
2
*****-----
3
*****-----
4
after
*****-----
2
*****-----
3
*****-----
4
1,2,3,4 from the above represent the contents of clipboard made by CTRL-C
i need to make a "CTRL-C" clipboard to save its history
if Clip4TB-append.txt has FOUR *****----- lines or higher, i need a batch that deletes the 1st CTRL-C's content from the txt file and then puts back up the last 3 clipboard contents so that a TXT file could maintain its size by rotation
GetClip-append.bat has
ECHO. >> "C:\ZTREE\F9\Clip4TB-append.txt"
ECHO *****----- >> "C:\ZTREE\F9\Clip4TB-append.txt"
C:\Utility\GetClip.exe >> "C:\ZTREE\F9\Clip4TB-append.txt"
ECHO. >> "C:\ZTREE\F9\Clip4TB-append.txt"
before
*****-----
1
*****-----
2
*****-----
3
*****-----
4
after
*****-----
2
*****-----
3
*****-----
4
1,2,3,4 from the above represent the contents of clipboard made by CTRL-C
i need to make a "CTRL-C" clipboard to save its history
if Clip4TB-append.txt has FOUR *****----- lines or higher, i need a batch that deletes the 1st CTRL-C's content from the txt file and then puts back up the last 3 clipboard contents so that a TXT file could maintain its size by rotation
GetClip-append.bat has
ECHO. >> "C:\ZTREE\F9\Clip4TB-append.txt"
ECHO *****----- >> "C:\ZTREE\F9\Clip4TB-append.txt"
C:\Utility\GetClip.exe >> "C:\ZTREE\F9\Clip4TB-append.txt"
ECHO. >> "C:\ZTREE\F9\Clip4TB-append.txt"