Menu
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Windows 10 Forums
Programming and Windows PowerShell
PowerShell Scripting to Pin a Program to Taskbar
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Regedit32, post: 102219, member: 11152"] Any executable can be pinned to the task bar. [INDENT]In Windows 10 though, pinning folders and/or other types of data files to Start menu is fine, but then choosing to pin them to your Taskbar is not intended - however, it can be achieved with a few steps. Just don't blame me if your taskbar ends up looking like an Apple Mac tablet.[/INDENT] For example: [LIST] [*]Suppose you have text file named [B]Birthdays.txt[/B] located on your Desktop [*]Open your [B]File Explorer[/B] then click [B]File[/B] and select [B]Change folder and search options[/B]. Next, select the [B]view tab[/B] and [B]remove check[/B] next to [I]Hide extensions nor known file types[/I] then apply change. [*]Now, returning to Desktop, [B]right-click[/B] on [B]Birthdays[/B] and select [B]rename[/B] and [U][B]change the extension[/B][/U] from [B].txt[/B] to [B].exe[/B] [LIST] [*]Note: You'll be prompted to confirm your name change. Click yes. [/LIST] [*]Next, [B]right-click[/B] on [B]Birthdays.exe[/B] and select [B]pin to taskbar[/B] [*]Next, [B]right-click[/B] on [B]Birthdays.exe[/B] and select [B]rename, [/B]then change the [B].exe[/B] back to [B].txt[/B], and click yes to confirm the change [*]Now, [B][U]press and hold down your SHIFT key[/U][/B] while at the same time [B]right-clicking[/B] your pinned Birthdays on taskbar and select Properties. Here you will need to edit the Shortcut target, making sure it points to the correct path, and file name [U]with the [B]correct file extension[/B][/U] [ in this example that being [B].txt[/B] ] given the Birthdays data file is a text file. If you wanted to you could also choose to change the icon that appears on your Taskbar here too. [*]Apply any changes made and you are ready to go. [/LIST] [INDENT=2]In this case, clicking on the pinned Birthdays will open this file in Notepad.[/INDENT] That's it -- as to whether its worth doing this -- I'll leave that up to individuals to decide what suits them best. The same procedure will allow you to pin a folder/directory to your taskbar too! Regedit32 ps: You'll probably want to change back to hidden extensions for files afterwards too. [/QUOTE]
Verification
Post reply
Forums
Windows 10 Forums
Programming and Windows PowerShell
PowerShell Scripting to Pin a Program to Taskbar
Top