Page 1 of 1

Suggest adding a command to create relative path shortcuts

Posted: 2023-05-25, 07:38 UTC
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?

Re: Suggest adding a command to create relative path shortcuts

Posted: 2023-05-25, 07:53 UTC
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"





 

Re: Suggest adding a command to create relative path shortcuts

Posted: 2023-05-25, 08:22 UTC
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.

Re: Suggest adding a command to create relative path shortcuts

Posted: 2023-05-25, 09:45 UTC
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.