How create symbolic link in TC6?

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2SanskritFritz

Thank you for the link and sorry for my confusion. I thought junctions is the windows term for mount points. That's wrong they are called reparse points.
Summary:

1. Junctions are symbolic links.
2. Hardlinks are something else.

Is there a way to create junctions using a command line tool, which is distributed along with windows. I don't think so...

Junctions seems to be a useful feature,
I would like to see an option "Create junction" in the cm_CreateShortcut window if a directory has been selected. Otherwise it should be disabled.
It shouldn't be to difficult to implement. The sysinternal tool comes with full source code.
User avatar
Ivan Moratinos
Junior Member
Junior Member
Posts: 46
Joined: 2003-11-25, 16:13 UTC
Location: Spain

Post by *Ivan Moratinos »

1. It behaves similar to a lnk file. Deleting the "symbolic link directory" will not delete the associated directory. Double click will open the contents of the associated folder in TC filelist window
2. Can only be applied to directories.
Maybe I'm a little numb now, but this is what the directory hotlist does, isn't it?
User avatar
havanna
Member
Member
Posts: 163
Joined: 2003-02-27, 08:06 UTC
Location: Baden/Württemberg

Post by *havanna »

Not really - to the user or programs they would just look like ordinary directories, the hotlist is a collection of "shortcuts" to places you need to see often and works only in TC.

Does anyone know a way to realize them without NTFS?
Tanstaafl
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Does anyone know a way to realize them without NTFS?
There is no way to create them on FAT or FAT32 AFAIK.
2. Hardlinks are something else
They are just as hardlinks on Unix: another appearance of a file under another name or even in another directory.
While there is a way to create them in Windows natively, juctions cannot be created by command line tools, heaven knows why. :roll:
I switched to Linux, bye and thanks for all the fish!
LamboR
Junior Member
Junior Member
Posts: 3
Joined: 2003-11-25, 11:01 UTC

Post by *LamboR »

Thanks!
For simbolic link on folder I was created button in TC6 with command "D:\...\JUNCTION.EXE" and Parameters "%T%N %P%N"
It's work!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

For simbolic link on folder I was created button in TC6 with command "D:\...\JUNCTION.EXE" and Parameters "%T%N %P%N"
Same should work for a file:
fsutil hardlink create "%T%N" "%P%N"
but somehow it doesnt work for me. Any clue, why?
I switched to Linux, bye and thanks for all the fish!
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2SanskritFritz

Maybe you aren't logged in as an Administrator?
fsutil operations can only performed by Administrators.
Creating "junctions" can be performed by any user....
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Lefteous wrote:2SanskritFritz

Maybe you aren't logged in as an Administrator?
fsutil operations can only performed by Administrators.
Creating "junctions" can be performed by any user....
I'm admin, and from the command line it works fine. So the problem is related to TC's way of handling the command. I probably miss something.
I switched to Linux, bye and thanks for all the fish!
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

SanskritFritz wrote: fsutil hardlink create NewFilename ExistingFilename
SanskritFritz wrote: fsutil hardlink create "%T%N" "%P%N"
I guess the problem is that %T%N is not a new filename but the existing target filename.

The following syntax works fine for me:

Command: fsutil hardlink create
Parameters: ? "%P%N"
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Uh oh i had it with quotation marks.
The problem was, that TC itself surrounds the %P%N parameter with a quotation mark. Interesting.
Now it is working, thanks. It really bugged me, lol.
BTW it works also like this: %T%N %P%N, because same name in different dirs are allowed.
I switched to Linux, bye and thanks for all the fish!
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

Here is another program that creates hardlinks (scroll down to FileLink) - http://www.gdps.dk/products/freeware.shtml

I hope that Christian adds support to TC for this. If you do (if you read this) don't forget descriptions! It would be nice the description for a hardlinked file was also displayed. Currently I can create a hardlink, but if I want to see the description, I have to create a new one.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
Post Reply