NTLinks + NTLinksMaker: NTFS links creation and information

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

cipo,
What exactly have you installed? NTLinks? NTLinks Maker?

NTLinks is a content plugin and may be used for custom columns or in setting attributes.
NTLinks Maker may be used from button or hotkey, but you have to define that button first (refer to section 5 of Readme).
CrMaReLi
Junior Member
Junior Member
Posts: 4
Joined: 2017-01-09, 10:54 UTC

Post by *CrMaReLi »

For some reason I can't get the utility to create proper symlinks to files.

I use recommended parameters from read me. Everything is working and creating fine except symlinks for files. Moreover, all apps can work properly with these symlinks, except file managers (including TC). I think problem is that

*sorry I can't post pictures yet so I'll try to explain*

When symlink created via your utility, if you open its properties and go to the tab "shortcut" it appears that all fields here are empty

When symlink is created via any other program or windows command, if you go to properties and the "shortcut" tab, "target" field will have a path to the source file

At the same time, if to look via your content plugin, both links have a path to the source file. And moreover - both of them can be accessed through other apps like text editor, music player etc directly. But yours doesn't work via explorer, tc etc.

Program version - NTLinks Maker 1.1.1.322
TC version - 9.0a
Tried to work with utility via explorer and cmd - yes (the same result)
Tested on other machines - yes (two notebooks and a PC, same result)
Windows - 10, latest update
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thank you for the report, I've checked and it is really so, Explorer can't show properties of my symlinks (it is true for both file and folder links), so it can't find files but it is somehow able to enter directories (perhaps because directories are processed by low level code).
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

CrMaReLi wrote:For some reason I can't get the utility to create proper symlinks to files.

I use recommended parameters from read me. Everything is working and creating fine except symlinks for files. Moreover, all apps can work properly with these symlinks, except file managers (including TC). I think problem is that

*sorry I can't post pictures yet so I'll try to explain*

When symlink created via your utility, if you open its properties and go to the tab "shortcut" it appears that all fields here are empty

When symlink is created via any other program or windows command, if you go to properties and the "shortcut" tab, "target" field will have a path to the source file

At the same time, if to look via your content plugin, both links have a path to the source file. And moreover - both of them can be accessed through other apps like text editor, music player etc directly. But yours doesn't work via explorer, tc etc.

Program version - NTLinks Maker 1.1.1.322
TC version - 9.0a
Tried to work with utility via explorer and cmd - yes (the same result)
Tested on other machines - yes (two notebooks and a PC, same result)
Windows - 10, latest update
NTLinks Maker can only create Symlinks if TC runs elevated !
Unfortunately it doesn't offer to elevate even the Link type was set to
Symbolic links only.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
CrMaReLi
Junior Member
Junior Member
Posts: 4
Joined: 2017-01-09, 10:54 UTC

Post by *CrMaReLi »

MVV wrote:somehow able to enter directories (perhaps because directories are processed by low level code).
Yeah, directories do work, forgot to mention this
Also, funny thing, that the problem occurs only with file managers. Apps, like AkelPad for example treat your symlinks to files normally if to open them through the app dialog.
Anyway, thanks for clearing the situation. I kinda tested everything to be sure, that it's not me who has broken OS and it's settings, leading to this)
CrMaReLi
Junior Member
Junior Member
Posts: 4
Joined: 2017-01-09, 10:54 UTC

Post by *CrMaReLi »

Horst.Epp wrote: NTLinks Maker can only create Symlinks if TC runs elevated !
Unfortunately it doesn't offer to elevate even the Link type was set to
Symbolic links only.
Actually that's not a problem. I typed * before the command. Example:
*%commanderpath%\utils\ntlinksmaker\ntlinksmaker.exe <parameters>
And it asks for elevation as it should.

* works like /admin for commands in totalcommander
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Horst.Epp wrote:NTLinks Maker can only create Symlinks if TC runs elevated !
Unfortunately it doesn't offer to elevate even the Link type was set to
Symbolic links only.
NTLinks Maker does offer to elevate for the first time when it is unable to perform an operation due to lack of permissions, and it specially asks for elevation when you set Symbolic links only mode (so it does offer to elevate when you create symbolic links), and it was one of the first its features (and it is mentioned in description and Readme)! You have to press Retry button in corresponding error/warning window.
CrMaReLi wrote:Yeah, directories do work, forgot to mention this
Also, funny thing, that the problem occurs only with file managers. Apps, like AkelPad for example treat your symlinks to files normally if to open them through the app dialog.
Anyway, thanks for clearing the situation. I kinda tested everything to be sure, that it's not me who has broken OS and it's settings, leading to this)
I've checked it with debugger, current NTLinks Maker sets prefixed (long path prefix \\?\) printable symlink name while mklink sets unprefixed one.
It seems that Explorer reads printable symlink name instead of substitute name (it is a shame that it uses printable name instead of substitute name that is really identifies the target) and of course Explorer doesn't support long paths...

The most interesting thing is that I use CreateSymbolicLink function that creates reparse point and sets fields for me, and it does require prefixed long paths...
Last edited by MVV on 2017-01-09, 13:53 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

MVV wrote:
Horst.Epp wrote:NTLinks Maker can only create Symlinks if TC runs elevated !
Unfortunately it doesn't offer to elevate even the Link type was set to
Symbolic links only.
NTLinks Maker does offer to elevate for the first time when it is unable to perform an operation due to lack of permissions, and it specially asks for elevation when you set Symbolic links only mode (so it does offer to elevate when you create symbolic links), and it was one of the first its features (and it is mentioned in description and Readme)! You have to press Retry button in corresponding error/warning window.
:oops:
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I've discovered why Windows Explorer is unable to show target paths for links created with Windows API function CreateSymbolicLink: this function doesn't put null character between printable path and substitute path in reparse point buffer... :D


Please test this version, it now creates symlinks by hands instead of calling CreateSymbolicLink function:

NTLinks Maker Build 340
+ wildcard filename mask support (default mask is now *.* for consistency with TC)
+ symlinks are now created manually in Explorer-compatible form
CrMaReLi
Junior Member
Junior Member
Posts: 4
Joined: 2017-01-09, 10:54 UTC

Post by *CrMaReLi »

MVV wrote:Please test this version
Briefly tested all basic features, like creating hard and symbolic links for files and
symbolic and junctions for folders between different folders of the same drive and and between different drives

Everything seems to be working
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MVV

Danish translation of NTLinksMaker 1.1.0.322 can be downloaded at:

http://madsenworld.dk/tcmd/NTLinksMaker_1.1.0.322dan.7z
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thank you, petermad!
I've released latest version with your translation.

NTLinks Maker 1.2.0.340
User avatar
thomasmolover
Member
Member
Posts: 160
Joined: 2016-12-12, 01:32 UTC

Post by *thomasmolover »

I like this plugins and translated it to untested SimpleChinese

Code: Select all

https://drive.google.com/file/d/0B6bBvQaXvGDJcUJ5SUJZVDkxY0k/view?usp=sharing
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thank you, I'll add it into next release.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

I'd like to suggest to add the catalog making mode to NTLinksMaker to make things similar to those I mentioned here but using mostly current Maker possibilities. This will not make all I mentioned in that suggestion, but at least it will allow to veiw catalog in both TC and Explorer without using some unpackers etc.
In this mode Maker can do following:
1. Make target folders, not links to them, attributes copied from source.
2. For files make symlinks (attributes copied from source files to their symlinks), except for descript.ion (see 3.).
3. Copy comments or whole descript.ion files.
4. Files sizes, maybe some other file info, added as new first or last line of file comment in already copied or new descript.ion file.
5. Would be nice to have ignored file/folder read errors with possibility to use some NSCopy-like mode to at least try to save some file comments from e.g. broken optical media.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply