It is currently Wed Aug 15, 2018 10:03 am

All times are UTC - 8 hours [ DST ]


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.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Mon Jul 10, 2017 1:41 pm 
Offline

Joined: Mon Jul 10, 2017 1:27 pm
Posts: 4
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?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 5:32 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5342
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".

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and did Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 8:33 am 
Offline

Joined: Mon Jul 10, 2017 1:27 pm
Posts: 4
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


Attachments:
attachment-3.png
attachment-3.png [ 64.97 KiB | Viewed 4239 times ]
attachment-2.png
attachment-2.png [ 50.37 KiB | Viewed 4239 times ]
attachment-1.png
attachment-1.png [ 40.94 KiB | Viewed 4239 times ]
Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 8:42 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 9:19 am 
Offline

Joined: Mon Jul 10, 2017 1:27 pm
Posts: 4
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 9:31 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 9:34 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5342
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

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and did Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 1:46 pm 
Offline

Joined: Mon Jul 10, 2017 1:27 pm
Posts: 4
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)


Attachments:
Attachment-3.PNG
Attachment-3.PNG [ 94.64 KiB | Viewed 4217 times ]
Attachment-2.PNG
Attachment-2.PNG [ 49.19 KiB | Viewed 4217 times ]
Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 4:43 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
I think you need to use attrib +s on the desktop.ini file, not on the folder itself


Top
 Profile  
Reply with quote  
PostPosted: Tue May 15, 2018 3:34 pm 
Offline

Joined: Fri Oct 11, 2013 7:37 am
Posts: 24
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

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


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.