home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,404 of 42,547   
   Wolf Greenblatt to Herbert Kleebauer   
   Re: Seedclip.bat batch file to seed Wind   
   07 Nov 24 22:38:50   
   
   XPost: alt.comp.microsoft.windows, alt.msdos.batch.nt   
   From: wolf@greenblatt.net   
      
   On Sun, 27 Oct 2024 08:53:33 +0100, Herbert Kleebauer wrote:   
      
   >> I have sometimes wanted to copy the whole contents of a command window   
   >> and save it in a file. A "tee" program is usually not sufficient. I   
   >> managed to do it with a mouse macro program, but a single command would   
   >> be ideal.   
   >   
   > But with the new terminal window in WIN11 it is as simple as in   
   > any GUI Windows program. Do a  mouse click on the   
   > first character you want to copy, then scroll down the window   
   > and do a  mouse click on the last character you want to   
   > copy and then a -C to store it in the clipboard.   
      
   Thanks to Herbert Kleebauer's prior suggestions, I have a series of   
   template-creating batch files now, all invoked easily in a Runbox.   
      
   When I want template #1 for example, I type "1" in the Runbox.   
   When I want template #2, I type "2"; "3" for template #3, etc.   
      
   All the batch files are the same - they just seed a different template into   
   the Windows clipboard using the "pipe to clip" Herbert had suggested.   
      
   HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\1.exe   
    @Default = c:\path\seedclip_template1.bat   
   HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\2.exe   
    @Default = c:\path\seedclip_template2.bat   
   HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\3.exe   
    @Default = c:\path\seedclip_template3.bat   
      
   Where the general form of the "seed to clip" for templates is   
      
    @echo off   
    REM This seeds the Windows clipboard for subsequent pastes   
    type C:\path\template.txt|clip   
      
   When you are in any file, you just type "1" into the Runbox,   
   and then you Control+V the template from the clipboard into it.   
      
   The nice thing is you can create delimiter templates of any length with   
   subsequent pastes, so you only really need one set of delimiters.   
    @echo off   
    REM seedclip.bat seeds the Windows clipboard for subsequent pastes   
    (for /l %%i in (1,1,10) do @echo ==============================   
   ==============================================&echo.)|clip   
      
   I am still using Herbert's spelling alt.msdos.bat program which   
   verbally challenges you to spell all the words that you misspell!   
   ~   
   ~   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca