Suggest adding a command to create relative path shortcuts

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
axxccc
Junior Member
Junior Member
Posts: 4
Joined: 2023-05-09, 13:55 UTC

Suggest adding a command to create relative path shortcuts

Post by *axxccc »

Currently Total Commander lacks a command and parameters to create relative path shortcuts, can this feature be added in the upcoming version 11?
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Suggest adding a command to create relative path shortcuts

Post by *Stefan2 »

axxccc wrote: 2023-05-25, 07:38 UTC ... create relative path shortcuts ...
How could that work?
Do you have a API reference from Microsoft?

How would you use this?
You could use a batch file with relative syntax "cd \..\..\Folder" or "CD sub\sub\folder"





 
Fla$her
Power Member
Power Member
Posts: 2296
Joined: 2020-01-18, 04:03 UTC

Re: Suggest adding a command to create relative path shortcuts

Post by *Fla$her »

2axxccc
It's better to abandon lnk files in favor of symbolic links with zero size. NTLinksMaker is able to create relative links.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Suggest adding a command to create relative path shortcuts

Post by *ghisler(Author) »

Windows doesn't allow links which contain just a relative path.

Total Commander 11 beta now supports relative paths with the following lnk file targets:
%WinDir%\System32\rundll32.exe shell32.dll, ShellExec_RunDLL ..\..\Folder
%WinDir%\System32\rundll32.exe url.dll, FileProtocolHandler ..\..\Folder
%WinDir%\System32\rundll32.exe url.dll, OpenURL ..\..\Folder
%WinDir%\explorer.exe ..\..\Folder

You will need to edit a link via Alt+Enter to change it from an absolute to a relative path using one of the above writings.
Author of Total Commander
https://www.ghisler.com
Post Reply