Classic Shell http://www.classicshell.net/forum/ |
|
Windows 10 Pinned Shortcuts http://www.classicshell.net/forum/viewtopic.php?f=7&t=7732 |
Page 1 of 1 |
Author: | ndhopkins [ Mon Jul 10, 2017 1:41 pm ] |
Post subject: | Windows 10 Pinned Shortcuts |
Question regarding Pinned Shortcuts on Windows 10: I have several custom shortcuts that I want to appear on end user's start menus. I'm using version 4.3.0 of Classic Shell with Windows 7 style enabled. I can manually pin the shortcut by performing the following: Start - All Programs - right-click on the desired folder - click Pin to Start menu (Classic Shell). This will create the pinned shortcut on the left side of the start menu. I have observed the pinned shortcut gets created at C:\Users\<userName>\AppData\Roaming\ClassicShell\Pinned. It appears as a type: File folder, but has an associated icon that looks like shortcut. If I manually configured the start menu by right-clicking and choosing Pin to Start Menu, I would expect that I would be able to harvest these "shortcuts" and deploy them via an automated method. But when I copy these shortcuts to a temporary location, unpin the shortcuts from the start menu and then copy the shortcut from the temporary location back to C:\Users\<userName>\AppData\Roaming\ClassicShell\Pinned the "shortcut" shows up as a type: File folder, but without the associated icon that looks like a shortcut. Does anybody have a method that can pin and unpin shortcuts from the start menu in an automated fashion? |
Author: | Gaurav [ Tue Jul 11, 2017 5:32 am ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
When pinning, a symbolic link is created. To "pin" a regular shortcut, just create a shortcut or copy-paste one in C:\Users\<userName>\AppData\Roaming\ClassicShell\Pinned using File Explorer or Command Prompt. Then it will be created without the shortcut arrow. Or you can right click an existing pinned item in the Start menu and choose "New shortcut". |
Author: | ndhopkins [ Tue Jul 11, 2017 8:33 am ] | ||||
Post subject: | Re: Windows 10 Pinned Shortcuts | ||||
Hi Gaurav, Thanks for your reply...I attempted your steps, but I was still unsuccessful. A couple of observations: Creating a shortcut or copy-paste on in C:\Users\<UserName>\AppData\Roaming\ClassicShell\Pinned This operation resulted in a "shortcut" not a "File folder." Please see attachment-1. When I execute the new pinned shortcut for "Clinical Applications" that was created via copy-paste, a new explorer window is opened, rather than cascading to New Text Document. Please see attachment-2. When I pin the shortcut manually (Pin from Start menu (Classic Shell)) (see attachment-3) you can see "Clinical Applications" cascades to New Text Document. Thanks in advance for your advice. Nate
|
Author: | Ivo [ Tue Jul 11, 2017 8:42 am ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
When you pin a folder, Classic Shell creates a special "folder shortcut" as described here: https://superuser.com/questions/142420/ ... mmand-line It is a folder that contains a target.lnk file and a desktop.ini file with special contents. |
Author: | ndhopkins [ Tue Jul 11, 2017 9:19 am ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
Hi Ivo, Thanks for your quick reply... I attempted to following the steps as described in https://superuser.com/questions/142420/ ... mmand-line. But I get the same result as I posted previously, a shortcut to the folder is pinned to the start menu. When you execute the shortcut, and Explorer window is opened to C:\Temp\XYZ, instead of cascading the contents of C:\Temp\XYZ. Thanks, Nate |
Author: | Ivo [ Tue Jul 11, 2017 9:31 am ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
Then try pinning it via the start menu, then compare the results. There must be some difference between what you are doing and what the start menu is doing. |
Author: | Gaurav [ Tue Jul 11, 2017 9:34 am ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
So you prefer the expanding shortcut? Instead of moving them, you can just delete it and create it again using the cmd line Windows tool, mklink.exe. You can use either the /J or /D switch. If you prefer the GUI, install the "Link Shell Extension": http://schinagl.priv.at/nt/hardlinkshel ... nsion.html |
Author: | ndhopkins [ Tue Jul 11, 2017 1:46 pm ] | |||
Post subject: | Re: Windows 10 Pinned Shortcuts | |||
Ivo, Maybe I'm doing something incorrectly. Can you evaluate my steps to see where I am messing up? Derived from https://superuser.com/questions/142420/ ... mmand-line I'm doing this via PowerShell... #1 Create new folder new-item -Path "C:\Temp\XYZ" -ItemType Directory #2 Create desktop.ini new-item -path "C:\Temp\XYZ\desktop.ini" -ItemType File #3 Edit desktop.ini "[.ShellClassInfo]">>"C:\Temp\XYZ\desktop.ini" "CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}">>"C:\Temp\XYZ\desktop.ini" "Flags=2">>"C:\Temp\XYZ\desktop.ini" #4 Create a shortcut named target.lnk in the folder pointing to the destination folder $wshShell = New-Object -ComObject wscript.shell $shortcut = $wshShell.CreateShortcut("C:\Temp\XYZ\target.lnk") $shortcut.TargetPath = "C:\Temp\XYZ" $shortcut.Save() #5 Add two empty files that the pinned shortcut will cascade New-Item -path "C:\Temp\XYZ\test1.txt" -ItemType File New-Item -Path "C:\Temp\XYZ\Test2.txt" -ItemType File #6 Add the system attribute to the folder attrib +s "C:\Temp\XYZ" Copy-Item -Path "C:\Temp\XYZ" -Destination "C:\Users\svcDT176071w10sv\AppData\Roaming\ClassicShell\Pinned" -Force Observations: The 2 folders I pinned via right-click show up as shortcut icons, but the one I just created (XYZ) does not have the shortcut icon (see attachment-2) When I click on Start - I now see XYZ as a pinned shortcut, but when I hoover over it, it cascades to show "Empty." I would expect to see "Test1.txt" and "Test2.txt" Performing the pinned step manually via right-click #1 Create new folder I created C:\Temp\ZYX #2 Create two empty text files test.txt test2.txt #3 Pin to Start menu (Classic Shell) ZYX is now pinned to the Start menu, hovering over shows test.txt test2.txt (see attachment-3)
|
Author: | Ivo [ Tue Jul 11, 2017 4:43 pm ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
I think you need to use attrib +s on the desktop.ini file, not on the folder itself |
Author: | mb1280 [ Tue May 15, 2018 3:34 pm ] |
Post subject: | Re: Windows 10 Pinned Shortcuts |
Pin a batch file to the Start menu or taskbar in Windows 10 . . . https://winaero.com/blog/pin-a-batch-fi ... indows-10/ Right click on the Desktop / New / Shortcut Browse to the .bat file / Select it In the shortcut target, modify it as follows: cmd /c "full path to your batch file" Rename the shortcut Change the icon Right-click / Run / Minimized Right-click / Pin to taskbar . . . No - this is not necessary, and, does not Pin it . . . Instead, drag it to the Taskbar, and delete it from your Desktop . . . Right-click to un-Pin it |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |