Forum rules

Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.

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?

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".

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\PinnedThis 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.

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.

#1 Create new foldernew-item -Path "C:\Temp\XYZ" -ItemType Directory#2 Create desktop.ininew-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 cascadeNew-Item -path "C:\Temp\XYZ\test1.txt" -ItemType FileNew-Item -Path "C:\Temp\XYZ\Test2.txt" -ItemType File#6 Add the system attribute to the folderattrib +s "C:\Temp\XYZ"Copy-Item -Path "C:\Temp\XYZ" -Destination "C:\Users\svcDT176071w10sv\AppData\Roaming\ClassicShell\Pinned" -ForceObservations: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"

Right click on the Desktop / New / ShortcutBrowse to the .bat file / Select itIn the shortcut target, modify it as follows: cmd /c "full path to your batch file"Rename the shortcutChange the iconRight-click / Run / MinimizedRight-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

Who is online

Users browsing this forum: Bing [Bot] and 8 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum