A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do you get this batch file shortcut in the task bar with an icon you want?



 
 
Thread Tools Rate Thread Display Modes
  #16  
Old September 10th 18, 06:11 AM posted to alt.comp.os.windows-10
K120
external usenet poster
 
Posts: 38
Default How do you get this batch file shortcut in the task bar with an icon you want?

On Mon, 10 Sep 2018 04:38:06 -0000 (UTC), John Doe
said:

Why did you remove Paul's attribute? Not a good sign for paying
attention to detail.


I read this long ago and understood it and believe in it.
http://www.html-faq.com/etiquette/?quoting?
Ads
  #17  
Old September 10th 18, 09:24 AM posted to alt.comp.os.windows-10
Gianni Turri
external usenet poster
 
Posts: 53
Default How do you get this batch file shortcut in the task bar with an icon you want?

On Sun, 9 Sep 2018 21:07:34 -0400, K120 wrote:

On Sun, 9 Sep 2018 20:49:44 -0400, K120 said:

So there is only one file, and it was never pinned to the taskbar.


I kept thinking of what you meant by the fact that I missed a step.
It had to be that what they said was a file wasn't a file after all.

Using the logic of throwing away what they said, since it made no sense,
and just looking at the three 'things', I figured out what the problem was
on my own.

The problem came about because the people who wrote the instructions never
clearly defined the three different entities clearly, only one of which was
a "file".

Nor did they describe the somewhat intricate "double-right-click" steps
involved in changing the target of the "thing" that I call the "icon" that
is on the taskbar.

Note that you have to double-right-click-then-immediately-left-click" to
see what you have to change. Never before, in Windows, since Win95 days,
have I ever had to right-click-right-click-left-click in sequence like
that!


The pinned shortcuts and this way to manage them, first appeared in Windows 7!

So it wasn't explained well.
And it wasn't intuitive.

But now it works just fine!
So all is forgiven!

Here's the missing step, but first, there are only three "things".
1. The original text file. This is the only "file".
2. The shortcut to that original file. "This is a shortcut".
3. The icon in the task bar. I don't know what this is called.
For now, I'll call it the "icon that is in the taskbar".

Of those three things, two have "Targets", but one is hard to find.
2. The Target of the shortcut is easy to find.
3. The Target of the icon in the taskbar is not intuitive to find.

To find the Target field of the icon in the task bar, you need to follow
these steps exactly, which I summarize as
right-click-right-click-left-click:

001 Rightclick on the icon in the taskbar
002 You will only see two lines
test.exe
Unpin from taskbar

Up until now, I left it at that.
But there's more you can do.
You just have to know how to do it.

003 Whle you are right clicked, go ahead and Rightclick a second time, this
time on "test.exe"
004 Now you see three different lines
Open
Run as administrator
Properties

005 Left click on Properties
007 Change the Target of that icon on the taskbar
from: Target = C:\Users\user\Desktop\test.bat
to: Target = C:\Users\user\Desktop\test.bat

Now it finally works as advertised.

So the trick is that you have to rightclick, rightclick, leftclick, all on
the icon that is on the taskbar!

Thanks. I'll write this up in another post for posterity.

  #18  
Old September 10th 18, 03:54 PM posted to alt.comp.os.windows-10
K120
external usenet poster
 
Posts: 38
Default How do you get this batch file shortcut in the task bar with an icon you want?

On Mon, 10 Sep 2018 00:12:57 -0400, K120 said:

That imageres.dll is a beautiful stockpile of icons.


For this Edge batch shortcut icon in the task bar, the normal edge icon is
a blue "e" on a black background. For the private edge icon in the task
bar, you might want the reverse, but the closest I could find is this white
e on a blue background.
C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wek yb3d8bbwe\MicrosoftEdge.exe

There are lost more generic icons in this thread
http://alt.comp.os.windows-10.narkiv...s-to-be-set-to

So far these are the best default stockpiles in that thread
C:\windows\system32\shell32.dll
C:\windows\system32\imageres.dll
C:\windows\system32\inetcpl.cpl
C:\windows\system32\moricons.dll
C:\windows\system32\mspaint.exe
C:\windows\system32\twinui.dll
C:\windows\explorer.exe

There is also mention of the greenfish icon editor to make your own icons.
  #19  
Old September 11th 18, 09:44 AM posted to alt.comp.os.windows-10
K120
external usenet poster
 
Posts: 38
Default How do you get this batch file shortcut in the task bar with an icon you want?


Quick summary of how to put custom batch file icons in Windows 10 menus

a. Taskbar
b. Left-side Start Menu
c. Right-side Start Menu
d. Taskbar Toolbar Cascade Menu (aka the Windows XP Classic Start Menu)

Cut here for a sample batch file to output a Hello-World print statement:
@echo off
echo "Hellow World"
pause
exit
Cut here for a sample batch file to start Microsoft Edge in prive browser
mode:
@echo off
%ComSpec% /c "start
shell:AppsFolder\Microsoft.MicrosoftEdge_8wekyb3d8 bbwe!MicrosoftEdge
-private"
exit
Cut here for a sample batch file to open a red command window as
Administrator:
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
IF NOT "%~1"=="" goto :START
SET LogFile=%TEMP%\cmda.vbs"
Echo Set UAC = CreateObject("Shell.Application") "%LogFile%"
Echo UAC.ShellExecute "%~f0", "%cd%", "", "runas", 1 "%LogFile%"
Start "" /MIN "%LogFile%"
goto :EOF
:START
%ComSpec% /k "CD /D "%*" & Echo Administrator: & color 4F"
:EOF
Cut here for a sample batch file to check the IP address & network
connection:
@echo off
set pingit=www.google.com
:curlme
C:\Windows\System32\curl.exe icanhazip.com
timeout 1 /nobreaknul
ping %pingit%
pause
goto curlme
:stop
exit
Cut here for a sample batch file to set & doublecheck the local time zone:
echo off
tzutil.exe /s "Eastern Standard Time"
echo.
tzutil.exe /g
echo.
pause
exit

001 Create test.bat & test to ensure it works
002 Copy test.bat to test.exe (which can be deleted later, if desired)
003 Make a shortcut to test.exe (which also can be deleted later, if
desired)
004 Set the icon to "shortcut to test.exe" to one of your choosing
"shortcut to test.exe", Properties, Change Icon, (select icon), OK
You may need to wait up to 30 secondes for the new icon to take effect.
You can choose the icons from any file below.
C:\windows\system32\shell32.dll (default icon location)
C:\windows\system32\imageres.dll (folders, devices, actions)
C:\windows\system32\ddores.dll (hardware devices and resources)
C:\windows\system32\pifmgr.dll (old-style icons of Windows 95 vintage)
C:\windows\system32\inetcpl.cpl (old-style icons of Windows 95 vintage)
C:\windows\system32\moricons.dll (old-style icons of Windows 95
vintage)
C:\windows\system32\accessibilitycpl.dll (accessibility features icons)
C:\windows\system32\mmcndmgr.dll (old-style computer management icons)
C:\windows\system32\gameux.dll (gaming icons)
C:\windows\system32\mspaint.exe (paint-related icons)
C:\windows\system32\mmres.dll (audio speakers, headphones, microphones)
C:\windows\system32\netcenter.dll (network settings and features)
C:\windows\system32\netshell.dll (network connections & hardware)
C:\windows\system32\networkexplorer.dll (network connections &
hardware)
C:\windows\system32\twinui.dll (twin screens icons)
C:\windows\explorer.exe (file explorer icons)
You can choose the icons from this set of thousands of icons.
https://sourceforge.net/projects/openiconlibrary/
You can also convert any image to an icon file using this 2-step
process:
A. Determine your "Shell Icon Size" dimensions, for example, if your
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\Shell Icon
Size=32
then you should create a 32x32 pixel icon "ico" file.
B. Load any image into Irfanview & save as an ICO file of 32x32 pixel
size
C. Use that "ico" icon file as your "test.ico" shortcut & menu icon
file.
005 Right click on "shortcut to test.exe" to "Pin to taskbar"
Note that you can't pin it to the taskbar as a "batch" file.
006 Double-right click on the "icon on the taskbar" to set the
"icon on the taskbar" "Properties" "Target" to the full path to
the original batch file "test.bat"
From Target = "test.exe"
To Target = "test.bat"
007 Test that the "icon on the taskbar" now works
008 If you're not planning on populating the Start Menu, you can now
delete the "shortcut to test.exe" and "test.exe".
009 If you wish to populate the Start Menu, then modify the Target field
of the "shortcut to test.exe"
From Target = "test.exe"
To Target = "test.bat"
010 To add the command to the left side Start Menu, copy or move the
"shortcut to test.exe" to this left-side Start Menu location
C:\Users\user\AppData\Roaming\Microsoft\Windows\ Start Menu\Programs\shortcut to test.exe
This will alphabetically place the "command in the left side Start Menu"
011 To add the command to the right side Start Menu, right click on the
"command in the left side Start Menu" & select "Pin to Start"
012 To add the command to the native Win10 Cascade Start Menu toolbar,
move or copy the "shortcut to test.exe" to a sub-hierarchy of your
choosing in this directory which you can set as a taskbar "toolbar":
C:\ProgramData\Microsoft\Windows\Start Menu\mymenu
NOTE: This toolbar then acts exactly like the WinXP Cascade Menu.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 02:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.