A junction (also called a soft link) is a symbolic link of a special type of file that contains a reference to another file or directory. Junctions can link directories located on different local volumes on the same computer. Otherwise, junctions operate identically to hard links. Junctions are implemented through reparse points.
Questions tagged [junction]
120 questions
6
votes
1 answer
Logical problem with "one" junction in Perl6
I am having some trouble with .one junction and range match:
> say (3,5).any ~~ (1 .. 9)
any(True, True)
> say so (3,5).any ~~ (1 .. 9)
True
> say so (3,5).one ~~ (1 .. 9)
False
> say so (3,0).one ~~ (1 .. 9) # expect True because 0 not in range…

lisprogtor
- 5,677
- 11
- 17
6
votes
1 answer
perl6 Is using junctions in matching possible?
Is it possible to use junction to match any of the values in a junction? I want to match any of the values in an array. What is the proper way to do it?
lisprog$ perl6
To exit type 'exit' or '^D'
> my @a=
[a b c]
> any(@a)
any(a, b, c)
> my…

lisprogtor
- 5,677
- 11
- 17
6
votes
1 answer
How to make GIT treat directory junctions as regular folders on Windows?
I need share to share certain files between different projects. Thus I have a file structure like so:
D:\shared\
D:\shared\files-shared-by-all-projects-here
D:\project1\
D:\project1\project1-specific-files-here
D:\project1\shared <- directory…

Fit Dev
- 3,413
- 3
- 30
- 54
5
votes
2 answers
How can I create a junction using cygwin?
This question shows that cygwin’s soft links are somewhat different from ntfs junctions. I’d like cygwin to create a real junction. I thought about running mklink but, hell, there is no mklink.exe. Apparently, it’s part of the shell command. There…

qdii
- 12,505
- 10
- 59
- 116
5
votes
3 answers
How can I make a batch file discover if a directory is actually a Junction?
I'm writing a Batch file (.bat) and I couldn't find a way to discover if a given directory I have the path to is a real directory or a Junction (created on Windows 7 by using mklink /j). Can anyone point me in the right direction?

ArmlessJohn
- 53
- 1
- 3
4
votes
1 answer
NTFS Junctions, trouble understanding the API
Update: This question has evolved into a question about the NTFS filesystem filter driver how to use the Win32 API in backup applications and other programs that need to know what a file really is on disk? Junctions and reparse points are key…

unixman83
- 9,421
- 10
- 68
- 102
4
votes
0 answers
How to easy resolve/normalize local file path with Powershell 5+ (symlinks/junctions-aware)?
I need Powershell 5.1 to resolve(normalize) existing local file path similar to tcl normalize or POSIX realpath similar to this, this and this.
Say this filename referenced by full…

Anton Krouglov
- 3,077
- 2
- 29
- 50
4
votes
6 answers
List Hard Links of a file (in C#)
I want to write a program that shows the files of another drive with hard links.
I want to keep both hardlinks consistent in filename and other things, so I have to get a function/method where I can list all current hard links of a file.
For…

fpdragon
- 1,867
- 4
- 25
- 36
4
votes
1 answer
Safely using junction or mklink /j with a git repository on Windows
Using Git on Windows, I'm trying to deal with content that's external to my git repo. We have artwork and content files for instance that are being updated by non git-users in google drive so to capture these changes I've setup something similar to…

cirrus
- 5,624
- 8
- 44
- 62
4
votes
1 answer
How to retrieve the target of a Junction or Symlink with a standard user
I am trying to get the target of a junction in my program, but the only way I managed do it is:
Requesting Backup privileges
p-invoke CreateFile with special parameters to get a handle to the file/dir.
DeviceIoControl call to the get the…

Zolka
- 221
- 1
- 3
- 8
3
votes
1 answer
How can I iterate over a directory and identify or omit NTFS junctions (symlink-ish)
I have some code to list the files in a directory. For Windows Systems, I'm hoping to end up with a list of files and folders that matches what you'd see in Windows Explorer. For example, when I list C:\ on Server 2016, I want to have the Users…

Nathan Friedly
- 7,837
- 3
- 42
- 59
3
votes
1 answer
How to use command line aliases to create a junction using paths with spaces in Cmder
I am using Cmder on Windows 10 (ConEmu 161206 [64] stable). I want to create an alias called cloud that creates a junction. Here's what I have typed in Cmder:
alias cloud=mklink /J "C:\Users\chjensen\OneDrive - chjensen\$1" "$2"
Let's say I want to…

Christian Jensen
- 900
- 1
- 10
- 25
3
votes
2 answers
Getting data from yii2 hasmany() function
I am working with yii2 to make a basic website.
I need to load a users liked videos when they have logged on.
In the database the
Videos are stored in the video table,
Users are stored in the user table,
UserVideoJunction is the junction table…

B_Skitter
- 31
- 1
- 3
3
votes
1 answer
Sql Junction Table in java
I want to use many to many relationship. how can do student with subjects and subject with students in sql.
the student table have
student_IDno | full name | address |
and the subject table have
subject_IDno| title | description | time |
i want to…

unknown
- 397
- 5
- 20
3
votes
1 answer
PHP: Recognize junction point on Windows (PHP5/Apache 2.4)
Is there any way to recognize if a folder is a junction point in PHP on a windows system? Or even get the path / name of the target?
is_link or realpath do not support it.
Thanks!

lsblsb
- 1,292
- 12
- 19