Topic: PinUtil : Pin To TaskBar And StartMenu Utility  (Read 881 times)

PinUtil : Pin To TaskBar And StartMenu Utility
« on: September 13, 2019, 03:36:03 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
PinUtil : Pin To TaskBar And StartMenu Utility

Usage1: PinUtil (TaskBar|StartMenu) File ["File 2" "File 9"]

Ex1: PinUtil TaskBar %windir%\System32\calc.exe %AllPrograms%\Accessories\Paint.lnk
Ex2: PinUtil StartMenu "C:\Windows\System32\notepad.exe" "%windir%\System32\calc.exe"

Usage2: PinUtil Config ConfigFile [Section]    (Default Section=PinUtil)

Ex: PinUtil Config %windir%\System32\PintUtil.ini

PinUtil.ini (Limited To 9 Elements For TaskBar And StartMenu):
[PinUtil]
StartMenu1=%AllPrograms%\Accessories\Paint.lnk
StartMenu0=%WinDir%\Explorer.exe
TaskBar0=%SystemRoot%\System32\cmd.exe
TaskBar9=%SystemRoot%\Explorer.exe

Usage3: PinUtil Pecmd ConfigFile [SubSection (Default=PinUtil)]   (_SUB SubSection)

Ex: PinUtil Pecmd %windir%\System32\Pecmd.ini PinUtil

Pecmd.ini
_SUB PinUtil
PINT %AllPrograms%\Accessories\Paint.lnk,StartMenu
PINT %WinDir%\Explorer.exe,StartMenu
PINT %SystemRoot%\System32\cmd.exe,TaskBar
PINT %SystemRoot%\Explorer.exe,TaskBar


Environment Variables are Available As Well As:
%StartMenu% ($Start_Menu), %Programs%, %ALLPrograms%, %Desktop% ($Desktop), %QuickLaunch% ($Quick_Launch)

Support: StartIsback, Start10, Start8, Open-Shell, Classic Shell, Explorer7ForWin8, Windows 7 StartMenu

It behaves ~like Explorer's Context Menu :thumbsup:
If an item is not pinned, check if the option is available in Explorer context menu  :wink:
You Cannot Pin Applications from a Removable Media...

A big thank to JFX for the base code, the core  :great:  I couldn't have done it without
Yes it gives the appearance of explorer.exe and so the the "pin to taskbar" item
will show up in context menu, bypassing MS simple trick to hide it.

* PinUtil_v1.3.0.7z (73.92 kB - downloaded 65 times.)  - 2019-09-20

:cheers:
« Last Edit: September 20, 2019, 09:30:32 AM by ChrisR, Reason: Update v1.3.0: Added Pecmd Syntax Support »

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #1 on: September 15, 2019, 10:49:03 AM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
Thanks will give this a try in XPE

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #2 on: September 20, 2019, 09:27:14 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
I updated PinUtil v1.3.0 with support for Pecmd syntax added
Use and example on the 1st post

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #3 on: September 23, 2019, 07:32:45 AM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
Hey @Chris

I am trying to understand how this works with Pecmd.ini as well PinUtil.ini

Is it better to use PinUtil.ini and if so if you use Ex: PinUtil Config %windir%\System32\PintUtil.ini does XPE write the pins to the correct ini file?

Basically im trying to get explorer.exe to behave correctly. Now if you click on the shortcut it opens another windows.

Hope i am clear.

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #4 on: September 24, 2019, 06:16:13 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Yes, there are a lot of posts on this, in real Computer
PinUtil gives the same result as choosing Pin To Tasbar from Explorer Context Menu. It is the same also by using PinTool.exe
Try on your computer to Pin To Taskbar %windir%\explorer.exe from explorer Context Menu

To pin without having a new tab or icon, it must be pinned from the taskbar jumplist from the running application (explorer in the example here) or with drag and drop a shortcut.
I don't know if there's a way out of doing it manually

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #5 on: September 24, 2019, 06:21:07 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
One way to do this is possibly to save the shorcuts manually pinned and the registry
Code: [Select]
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
and .lnk from
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

And add them to the build. But, it's manual, it can't be automated


Is it better to use PinUtil.ini and if so if you use Ex: PinUtil Config %windir%\System32\PintUtil.ini does XPE write the pins to the correct ini file?
No XPE AddPin macro is defined to write in pecmd.ini section PinUtil
« Last Edit: September 24, 2019, 08:37:11 PM by ChrisR »

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #6 on: June 02, 2020, 01:16:24 PM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
is it possible to pin KeyboardLayout.cmd and set an icon?

StartMenu0=%WinDir%\System32\KeyboardLayout.cmd,%WinDir%\System32\shell32.dll#173

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #7 on: June 02, 2020, 02:20:25 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
I do not think the AddPin Macro allows for Parameters

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #8 on: June 02, 2020, 02:41:06 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
There is not hard work for that, It is just LINK+PIN combine, few lines code.
Just in the mood of the developer, if they will offer the interface for that.

if you can't wait, WinXShell.exe(Lua) command has the interface:
Code: [Select]
Taskbar:Pin('cmd.exe', 'KBLayout', '/c KeyboardLayout.cmd', 'shell32.dll', 173)
Startmenu:Pin('cmd.exe', 'KBLayout', '/c KeyboardLayout.cmd', 'shell32.dll', 173)


ila_rendered
« Last Edit: June 02, 2020, 02:56:31 PM by slore »

Re: PinUtil : Pin To TaskBar And StartMenu Utility
« Reply #9 on: June 02, 2020, 02:58:35 PM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
There is not hard work for that, It is just LINK+PIN combine, few lines code.
Just in the mood of the developer, if they will offer the interface for that.

if you can't wait, WinXShell.exe(Lua) command has the interface:
Code: [Select]
Taskbar:Pin('cmd.exe', 'KBLayout', '/c KeyboardLayout.cmd', 'shell32.dll', 173)
Startmenu:Pin('cmd.exe', 'KBLayout', '/c KeyboardLayout.cmd', 'shell32.dll', 173)


(Attachment Link)

I love you guys but you are way smarter than me.

How can I implement it? I'm not using winxshell.

 

Powered by EzPortal