[GH-ISSUE #7] Get path of actual shortcut #7

Closed
opened 2026-02-25 21:32:27 +03:00 by kerem · 11 comments
Owner

Originally created by @clechasseur on GitHub (Jul 17, 2017).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/7

Originally assigned to: @clechasseur on GitHub.

Add an option to get the path of the actual shortcut (the .lnk file) instead of following the link.

Original issue: https://pathcopycopy.codeplex.com/workitem/11417

Originally created by @clechasseur on GitHub (Jul 17, 2017). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/7 Originally assigned to: @clechasseur on GitHub. Add an option to get the path of the actual shortcut (the .lnk file) instead of following the link. Original issue: https://pathcopycopy.codeplex.com/workitem/11417
kerem 2026-02-25 21:32:27 +03:00
Author
Owner

@MMiloslavsky commented on GitHub (Aug 25, 2019):

It should also be possible to get the path of Internet shortcut (the .url file).

<!-- gh-comment-id:524642264 --> @MMiloslavsky commented on GitHub (Aug 25, 2019): It should also be possible to get the path of Internet shortcut (the .url file).
Author
Owner

@garoto commented on GitHub (Aug 25, 2019):

.url files are plain ASCII files, so to implement that would require file parsing routines. Seems way out of scope to me.

<!-- gh-comment-id:524650630 --> @garoto commented on GitHub (Aug 25, 2019): `.url` files are plain ASCII files, so to implement that would require file parsing routines. Seems way out of scope to me.
Author
Owner

@clechasseur commented on GitHub (Aug 26, 2019):

.url files are a separate issue, I'll open a new one.

<!-- gh-comment-id:524699123 --> @clechasseur commented on GitHub (Aug 26, 2019): .url files are a separate issue, I'll open a new one.
Author
Owner

@clechasseur commented on GitHub (Aug 26, 2019):

URL issue moved to #77.

<!-- gh-comment-id:524699415 --> @clechasseur commented on GitHub (Aug 26, 2019): URL issue moved to #77.
Author
Owner

@blackcrack commented on GitHub (Aug 26, 2019):

Hi @clechasseur
this becomes me a suggestion would it also, if url's (so the copy adressbar or path's from copy'ed fileadresses) create a link on the fs.. with the addresses from the clibboard http:\\*, http:\\* or c:\\, create .lnk or .url
then can you copy the path of the iadress or file, can klick on the Desktop or anywhere in the Filemanager with right mouseklick => patchcopycopy=>create a link(lnk/url) therewith can you use the algoryghm of the explorer (if you found the code) "copy path of the inet/url" rightklick on the desktop=>new=>link, this can you make more effective, copy the the last clipboard entry,
and clipboardtext>link->create the link/url with( (config entry [X]popup by Linkcreation"get the name:" // as enhanced possibility )
otherwise could the url/lnk=The name and later could the user rename the fresh generate link.

this is more effective as the MS-Method of create a link

Copy url/F-path/file+path
MS-method:
right click on desktop : new->link=popup->popup....popup

pathcopycopy:
In any Folder (inkl. Desktop)
right click on desktop/free space of the Filemanager :
"New Link from CBoard"-> create/put a link from last C-Entry" (From Clibboard)

doingh->exist fastest as possible- it brings on the point "Put a link on filesystem"
last entry with file:\\ , http:\\ and html:\\ and \\ (because Sambafs)
so all texts with "\\" in the adresses in the last line of Clipboard.. i guess this could works.

i think on copyed texts with a \\ this is a text there could insert a check-routine
"exist this file or url actually" =(check the adress if become a "1" then create) else (goto :eof)

there could also be a possibility for ftp, sftp with passwords to open in explorer... if, this works....
or, a dll where supports some to connecting a ftp/sftp folder with "name":"pword"@ftp:\\url.co\path

gives there in the outer space in the internet a ftpsfs.dll or something ? could be cool !

this "copy in the clipboard" makes also possible to make a textfile with a url(so ftp or html)+login"

to make a "url/link with login" as a link =>open Notepad, put the url/link into,
setting up, and copy again for
"create a link" in pathcopycopy for more quick login with explorer or browser in a Internet-fs or webside

In the Faq/Helpfile as help/Hint

best regards
Blacky

===>>> sorry for so often mail/update <<<===

<!-- gh-comment-id:524827480 --> @blackcrack commented on GitHub (Aug 26, 2019): Hi @clechasseur this becomes me a suggestion would it also, if url's (so the copy adressbar or path's from copy'ed fileadresses) create a link on the fs.. with the addresses from the clibboard ```http:\\*, http:\\* or c:\\```, create .lnk or .url then can you copy the path of the iadress or file, can klick on the Desktop or anywhere in the Filemanager with right mouseklick => patchcopycopy=>create a link(lnk/url) therewith can you use the algoryghm of the explorer (if you found the code) "copy path of the inet/url" rightklick on the desktop=>new=>link, this can you make more effective, copy the the last clipboard entry, and clipboardtext>link->create the link/url with( (config entry [X]popup by Linkcreation"get the name:" ```//``` as enhanced possibility ) otherwise could the url/lnk=The name and later could the user rename the fresh generate link. this is more effective as the MS-Method of create a link Copy url/F-path/file+path MS-method: right click on desktop : new->link=popup->popup....popup pathcopycopy: In any Folder (inkl. Desktop) right click on desktop/free space of the Filemanager : "New Link from CBoard"-> create/put a link from last C-Entry" (From Clibboard) doingh->exist fastest as possible- it brings on the point "Put a link on filesystem" last entry with ``` file:\\ , http:\\ and html:\\ and \\ (because Sambafs)``` so all texts with ``` "\\" ``` in the adresses in the last line of Clipboard.. i guess this could works. i think on copyed texts with a ```\\``` this is a text there could insert a check-routine "exist this file or url actually" =(check the adress if become a "1" then create) else (goto :eof) there could also be a possibility for ftp, sftp with passwords to open in explorer... if, this works.... or, a dll where supports some to connecting a ftp/sftp folder with ``` "name":"pword"@ftp:\\url.co\path ``` gives there in the outer space in the internet a ftpsfs.dll or something ? could be cool ! this "copy in the clipboard" makes also possible to make a textfile with a url(so ftp or html)+login" to make a "url/link with login" as a link =>open Notepad, put the url/link into, setting up, and copy again for "create a link" in pathcopycopy for more quick login with explorer or browser in a Internet-fs or webside In the Faq/Helpfile as help/Hint best regards Blacky ===>>> sorry for so often mail/update <<<===
Author
Owner

@clechasseur commented on GitHub (Aug 27, 2019):

Hi @clechasseur
this becomes me a suggestion

<snip>

These suggestions are not related to the original issue at hand. If you want, you can open different issues for each. Thank you.

<!-- gh-comment-id:525128881 --> @clechasseur commented on GitHub (Aug 27, 2019): > Hi @clechasseur > this becomes me a suggestion `<snip>` These suggestions are not related to the original issue at hand. If you want, you can open different issues for each. Thank you.
Author
Owner

@MMiloslavsky commented on GitHub (Aug 30, 2019):

Thanks a lot for implementing the ".url file" enhancement in v17.0.
Any chance to address the ".lnk file" enhancement as well?

<!-- gh-comment-id:526721281 --> @MMiloslavsky commented on GitHub (Aug 30, 2019): Thanks a lot for implementing the ".url file" enhancement in v17.0. Any chance to address the ".lnk file" enhancement as well?
Author
Owner

@clechasseur commented on GitHub (Aug 31, 2019):

Thanks a lot for implementing the ".url file" enhancement in v17.0.
Any chance to address the ".lnk file" enhancement as well?

This one is not as easy. We'll see what I can do.

<!-- gh-comment-id:526793804 --> @clechasseur commented on GitHub (Aug 31, 2019): > Thanks a lot for implementing the ".url file" enhancement in v17.0. > Any chance to address the ".lnk file" enhancement as well? This one is not as easy. We'll see what I can do.
Author
Owner

@clechasseur commented on GitHub (Sep 3, 2019):

I suspect it could be possible if I used the SHCreateShellItemArrayFromDataObject function in IShellExtInit::Initialize instead of using CF_HDROP / DragQueryFile. However, this is only available on Windows Vista, so we'll have to shelf this one for later.

<!-- gh-comment-id:527300148 --> @clechasseur commented on GitHub (Sep 3, 2019): I suspect it could be possible if I used the `SHCreateShellItemArrayFromDataObject` function in `IShellExtInit::Initialize` instead of using `CF_HDROP / DragQueryFile`. However, this is only available on Windows Vista, so we'll have to shelf this one for later.
Author
Owner

@clechasseur commented on GitHub (Jan 1, 2020):

This has been implemented in the feature/post-winxp branch and will be part of the next major release.

I'm wondering if this setting should default to ON… maybe it makes more sense to get the path of the .lnk file you clicked on...

<!-- gh-comment-id:570014818 --> @clechasseur commented on GitHub (Jan 1, 2020): This has been implemented in the `feature/post-winxp` branch and will be part of the next major release. I'm wondering if this setting should default to ON… maybe it makes more sense to get the path of the .lnk file you clicked on...
Author
Owner

@MMiloslavsky commented on GitHub (Jan 1, 2020):

Thanks a lot for implementing this long-awaited feature!

For me, the default state of this setting doesn't matter, as long as it could be easily changed at any moment in the Settings. Probably, it's a good idea to leave it OFF by default, to keep the behavior of previous releases.

<!-- gh-comment-id:570052347 --> @MMiloslavsky commented on GitHub (Jan 1, 2020): Thanks a lot for implementing this long-awaited feature! For me, the default state of this setting doesn't matter, as long as it could be easily changed at any moment in the Settings. Probably, it's a good idea to leave it OFF by default, to keep the behavior of previous releases.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pathcopycopy#7
No description provided.