Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #179294
| From | Wolf Greenblatt <wolf@greenblatt.net> |
|---|---|
| Newsgroups | alt.comp.os.windows-10, alt.comp.os.windows-11 |
| Subject | Re: {rightclick} New | Text Document |
| Date | 2024-10-15 23:12 -0400 |
| Organization | Private News Server |
| Message-ID | <venav8$3oq1$1@news.samoylyk.net> (permalink) |
| References | <velo9h$3r5$1@news.samoylyk.net> <velv90$1o54f$1@dont-email.me> <vem7a7$15bc$1@news.samoylyk.net> <vemrc0$1sd0o$1@dont-email.me> <vemv6r$1t75s$1@dont-email.me> |
Cross-posted to 2 groups.
On Wed, 16 Oct 2024 01:49:56 +0200, Herbert Kleebauer wrote: >>> But when created a shortcut to that batch file, Windows wouldn't allow me >>> to pin it to the taskbar. >> >> Instead of messing around with shortcuts and the registry, I would >> use a small exe to start the batch. > > It is even much simpler. Just rename cliptext.bat to cliptext.exe, > then you can drag&drop it to the taskbar. Then rename it back to > cliptext.bat and right-click in the taskbar and change the link in > properties also to cliptext.bat. That worked! Thanks! You're full of Windows tricks. How do you learn them all! Your suggestion above is a really neat trick because Windows can pin a shortcut to an exe to the taskbar but not a shortcut to a batch file, so, with your trick, the bat is temporarily renamed as an exe whose shortcut gets pinned first to the taskbar and then it's a matter of tidying up the automatic changes to the target to get the now-pinned shortcut to point to the batch file! It worked like a charm. Now I can seed the "New | Text Document" by either "Win+R | cliptext" or clicking on the "cliptext.lnk" pinned to the taskbar. However - only after it worked did I realize there's an *EVEN SIMPLER WAY!* All I had to do was pin a link to *any* existing executable file, and edit that link's target line to point to C:\batchfiles\cliptext.bat Arbitrarily I picked to make a shortcut to Notepad++ on the taskbar and then I changed that shortcut's target to C:\batchfiles\cliptext.bat I could have made a link to anything actually, but I was already using Notepad++ so I used that link (plus the icon is ok as it w/o changing it). It's this simple: 1. Pin *any* executable shortcut to the taskbar (for example, Notepad++) 2. Change the shortcut target to C:\batchfiles\cliptext.bat That's it! This is the current content of C:\batchfiles\cliptext.bat @echo off REM cliptext.bat seeds the clipboard for subsequent pastes (for /l %%i in (1,1,10) do @echo &=============================================================================&echo.)|clip
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
{rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-15 08:47 -0400
Re: {rightclick} New | Text Document Big Al <alan@invalid.com> - 2024-10-15 09:53 -0400
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-15 16:43 +0200
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-15 13:04 -0400
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-16 00:44 +0200
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-16 01:49 +0200
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-15 23:12 -0400
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-16 09:44 +0200
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-16 16:31 -0400
Re: {rightclick} New | Text Document Newyana2 <newyana@invalid.nospam> - 2024-10-16 08:52 -0400
Re: {rightclick} New | Text Document Newyana2 <newyana@invalid.nospam> - 2024-10-15 11:26 -0400
Re: {rightclick} New | Text Document Paul <nospam@needed.invalid> - 2024-10-15 13:38 -0400
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-07 22:42 -0500
Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 09:07 +0100
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 09:14 -0500
Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 17:18 +0100
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 13:58 -0500
Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 22:18 +0100
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 20:24 -0500
Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-09 10:22 +0100
Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 17:30 +0100
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-08 21:53 +0100
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 23:14 -0500
Re: {rightclick} New | Text Document Zaidy036 <Zaidy036@air.isp.spam> - 2024-11-09 10:20 -0500
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-25 17:50 -0500
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:35 +0100
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:36 +0100
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:37 +0100
Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:38 +0100
Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-25 18:04 -0500
csiph-web