Questions tagged [junction]

Questions about working with NTFS junction points (somewhat similar to Linux symlinks).

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How to merge folders logically like Desktop folder in Windows 10/11

As you know the Desktop in Windows is created merging contents of \Users\Public\Desktop and \Users<User>\Desktop. So is it possible to create same effect. What I want is a central Pictures ...
user avatar
  • 101
0 votes
0 answers
14 views

Make a Windows Junction Link point to other directory without removing it and creating it again

I have a Windows Junction Link which points to directory A. Now I want it to point to directory B. Currently I delete the junction link pointing to A and then I create a new one pointing to B. Initial ...
user avatar
6 votes
3 answers
240 views

How to safely recursively delete a directory in Windows?

NTFS supports all kinds of links including junctions, hard links, soft links, etc. so here's a problem. Let's say you're recursively deleting a directory which actually contains the above things. It's ...
user avatar
0 votes
0 answers
86 views

Create a junction by device ID\Volume instead of its letter

A junction is a directory symbolic link where C:\Link can redirect to D:\Target, for example. A mount point lets you redirect a directory to the root of an entire volume, so that C:\volume can ...
user avatar
  • 13
0 votes
1 answer
279 views

Can't delete folders/files within a symbolic link or junction mklink

I used mklink to create a symbolic link /d to a hard drive. Now, even though I am the owner, confirmed by the "Take Ownership" process, I cannot delete files located in this symbolic link. ...
user avatar
0 votes
0 answers
43 views

mklink /j folder says I am out of space when I am not

I have multiple drives for my media which I want to all appear as one drive using mlink /j junction. Videos (F:) is a 12TB HDD which contains TV Shows, Concerts, Music Videos, Etc I have linked the ...
user avatar
2 votes
1 answer
5k views

How does Robocopy handle file system links (symbolic links, hard links and junctions)?

Is it safe to delete a Robocopy backup? I have read that some people accidentally deleted files outside of the backup because it contained links/junctions. Can I prevent this?
user avatar
0 votes
1 answer
355 views

What are junction points for files (instead of directories)?

According to https://ss64.com/nt/mklink.html, junctions cannot link to files. Also, when I try this nevertheless with mklink /j junction-file target\foo.txt, the command will succeed, but the junction ...
user avatar
0 votes
1 answer
46 views

How do I create a hard link/junction for multiple folders pointing to a single folder?

Example: D:\Comp\ this directory has these folders - Volume 1 Volume 2 Volume 3 I want to point Volume 1 and Volume 2 to one folder, and Volume 3 to another such that everything looks like this: ...
user avatar
  • 31
0 votes
0 answers
139 views

Can `mklink /J` be used to create symbolic links to files on windows?

All the docs I found online (eg: https://ss64.com/nt/mklink.html, https://stackoverflow.com/questions/9042542/what-is-the-difference-between-ntfs-junction-points-and-symbolic-links etc) mention that ...
user avatar
4 votes
1 answer
183 views

Windows 10 mklink to c:/originalDirectory which preserves original files if they are deleted from the linked directory

Updated: I want to do something, but I don't know how and I suspect that it isn't possible. I'm on Windows 10. Imagine that I have a directory c:\originalDirectory and I create a link at c:\...
user avatar
0 votes
1 answer
195 views

Can't install software when c:\Windows\Installer is Junctioned

When I move all files from c:\Windows\Installer to E:\SymLinked\Installer and then do a mklink /J c:\Windows\Installer E:\SymLinked\Installer, reboot, and then try installing software I get errors ...
user avatar
-1 votes
2 answers
153 views

Writing files over network on another machine

I have the following scenario: CentOS machine which downloads files (e.g., wget, or any software that tries to save to local disk) Ubuntu machine which contains the storage for the downloaded files (...
user avatar
0 votes
1 answer
93 views

Windows: Get absolute path of junctioned folder

System: Windows 10x64pro I have a folder junctioned into another. However, once inside the junctioned folder, I need to be able to get its actual absolute path. How is this done? Come to think of it,...
user avatar
0 votes
1 answer
426 views

NTFS junction from Windows Store Gears 5 pointing to kernel device

I just installed the new Gears 5 game from Windows Store and I can't figure out where it's installed so that I whitelist it in the firewall. PS C:\Program Files\WindowsApps> Get-Item .\Microsoft....
user avatar
  • 126
1 vote
2 answers
4k views

Can an NTFS junction point be followed over a network share?

OS: Windows Server 2016 If i have a folder X containing a junction point to another folder Y (on same machine and same volume). Then if i share X over the network, will a remote user that connects to ...
user avatar
  • 133
0 votes
1 answer
92 views

Understanding Junction

Most games I play stores its "save" data files in either "C:\Users\ShortQuestion\My Documents" or "C:\Users\ShortQuestion\Saved Games" Since I don't want all these save files filling up my C ...
user avatar
0 votes
0 answers
44 views

Windows 7 Pagefile on Mounted Partition, on 1 HDD System: Folder Attributes/Permissions?

I wish to put my pagefile.sys in a separate partition on the same HDD as my boot partition, mounted on a folder in the tree of my boot partition — say "$PagePart". My question: should $PagePart ...
user avatar
  • 1
1 vote
0 answers
262 views

How to delete a junction link where the target doesn't exist?

I have a directory junction whose target doesn't exist anymore and I want to delete said junction. Sounds easy enough but I get errors when I try: > rd Documents Access is denied. > fsutil ...
user avatar
4 votes
4 answers
2k views

7zip force ignore NTFS junctions

Windows 1803, 7z 18.05 Trying to archive and compress a folder structure with multiple NTFS junctions referencing parts of the said structure (i.e. no "outside" links) - any possibility to compress ...
user avatar
1 vote
1 answer
214 views

In Windows 10, is there a way to do a "reverse lookup" for a folder junction?

In other words, I know that someplace a junction exists that links to folder X - how can I find that junction? Or, since there could (theoretically) be more than one junction to this folder, how can I ...
user avatar
2 votes
1 answer
397 views

How to prevent symbolic directory links from getting deleted during Windows or Visual Studio updates?

I have created symbolic links using mklink /d for both C:\Windows\Installer and C:\ProgramData\Package Cache in order to save SSD space. From time to time, these folders get recreated locally (...
user avatar
  • 141
5 votes
1 answer
8k views

How to properly delete a Directory Junction?

I am using multiple installations of the same game (on Windows 10 Home), in order to have easier access to various addon/user configurations. The subfolders of each installation are Directory ...
user avatar
  • 1,311
0 votes
1 answer
118 views

Using junctions in PATH

I've noticed a couple of times that it looks like I can't use NTFS junctions under %SystemRoot%, put the ensuing file path in my PATH, and get it to work for DLL lookup. For example, if I put a ...
user avatar
  • 161
3 votes
0 answers
1k views

How to delete a folder that may be a junction, and the destination using command line in Windows

I want to completely remove a 'folder' that may or may not be a junction to another folder. If the 'folder' isn't a junction rd /s /q 'folder' will do the job. But if the 'folder' is a junction to ...
user avatar
  • 121
1 vote
0 answers
52 views

AdwCleaner finds my symlink as a threat. Why?

Malwarebytes AdwCleaner finds my hard link (aka directory junction) as a threat. Why is this? Or is it normal for this type of links to be considered a threat by such programs? And if it's not ...
user avatar
  • 245
0 votes
1 answer
147 views

Using "broken" junction link to block writes

So I wanted to stop Spotify from caching to my SSD (I have a small 60 GB drive), but apparently it's not possible to disable caching. Spotify keeps the cache in the %LocalAppData%\Spotify\Data folder....
user avatar
1 vote
1 answer
171 views

Representation of junctions in Windows

I'm using a set of junctions to move my user folder tree to another drive, as my OS install is on a rather small SSD. However, the junctions still appear as if they occupy space on the SSD. Can I do ...
user avatar
  • 123
6 votes
2 answers
7k views

Is it possible to make Windows 10 show symbolic links with a different icon in Explorer?

I would like to know when I am browsing a symbolic link folder as I have had issues with copying directories then missing the fact that symbolic links have been lost through the copy operation etc. Is ...
user avatar
  • 3,962
-1 votes
1 answer
1k views

Can I move one folder from c:\ProgramData to different drive using junction?

i`m using win 10, Can I move one folder from c:\ProgramData to different drive using junction and keep software which has data in that folder fully functional? and please can you write how to write a ...
user avatar
1 vote
1 answer
675 views

Create junction between OneDrive Music folder and Google Drive on Windows 10

I have all of my music stored on Google Drive, which I can access on my laptop at C:\Users\{USERNAME}\Google Drive\Music I am trying to set up a junction between this folder and the OneDrive Music ...
user avatar
  • 123
1 vote
0 answers
80 views

Start Menu, Metro apps, and other functions are broken after migrating system directories with symlinks

I've tried several times now to migrate Program Files, Program Files (x86), and AppData to my second HD with various degrees of success. (I have already migrated my User directories to the second HD ...
user avatar
1 vote
1 answer
2k views

Using external USB 3.0 SSD for improving performance on Windows 10

I recently got an all-in-one. Unfortunately it has a very slow 5400 RPM HDD and I can't really upgrade to internal SSD (the AiO is not really DIY upgradeable). I do have a external SSD connected via a ...
user avatar
  • 11
2 votes
0 answers
1k views

mklink directory junctions are inaccessible on Windows 10

I created a junction with the mklink command on Windows 7 and it worked great for the past 2 years. (EDIT: I have now verified that this exact scenario/problem still exists on a brand new laptop with ...
user avatar
  • 233
2 votes
1 answer
3k views

Creating Junction from mapped NAS

I need to create a junction "test" on J:\ (which is a Windows partition) which should refer to K:\folder1\folder2\folder3 (mapped network drive). I cd into J:\ and ran the command mklink /J k:\...
user avatar
3 votes
1 answer
2k views

Windows junction invalid on network share

I usually have this setup on my Windows machines: I share a single folder such as C:\share as network share. Then I use mklink /J somedir C:\somedir to create junction points to directories I want to ...
user avatar
1 vote
0 answers
221 views

Use Junction or symbolic link to "rename" NTFS directory

I was wondering (indeed it would be very useful) if it is possible to use NTFS Junction, symbolic link or something like that to use an alias for some directory, and at the same time to hide the ...
user avatar
1 vote
1 answer
2k views

make NTFS Junction system hidden on Windows

I'm trying to migrate my user profile to a separate partition an I've got to the point of adding the compatibility system Junctions to the new profile. However I don't want to see them in my profile ...
user avatar
  • 197
1 vote
0 answers
207 views

How to FastCopy Only...? Junctions? Hard Links? etc?

I'm new to FastCopy. How can I use it to copy only a certain type of file/folder? e.g. How to copy only junctions, and nothing else?
user avatar
0 votes
1 answer
252 views

How to Count Hard Links, Symbolic links, and Junctions on an Ntfs Volume

I know of some programs that claim to count one or the other, but I don't know of any that can count all three. I would like to count all three and print out a list like so: Hard Links: 123 ...
user avatar
0 votes
1 answer
998 views

mklink /J created to "Computer"

In trying to create a junction link for my iTunes backup folder, I accidentally pointed to a directory called "Computer/MediaSync" This occurred because I forgot to use quotation marks around the ...
user avatar
1 vote
0 answers
249 views

Maintain duplicate files with same/ different names on a Windows NTFS drive? Use junctions, symbolic or hard links?

Maintain duplicate files with same/ different names on a Windows NTFS drive? Use junctions, symbolic or hard links? I've read junctions, symbolic links and hard links, but its unclear how the ...
user avatar
  • 921
7 votes
1 answer
2k views

How to get directory sizes without junctions in Far Manager

By default Far Manager includes sizes junction into the directory size (F3). Is there a way to avoid counting them?
user avatar
0 votes
2 answers
1k views

How To Move The Windows Folder To A Different Drive?

I have two small hard drives. However, i store all my files on the boot drive. This makes the boot drive very slow. I've read before that it's possible to move a folder to a different drive and make ...
user avatar
1 vote
1 answer
12k views

Vudu and Spotify Download Location

Vudu and Spotify both store the offline/downloaded files in 'AppData/Roaming' and I have maxed out my 'C' Drive. I want to move it to my larger 'D' Drive. I looked up what to do and all over the ...
user avatar
27 votes
5 answers
40k views

Moving Windows folders around with Junction links (mklink)

Space on my SSD is running pretty low, and there seems to be a 19GB folder in Windows that sticks out (%windir%\Installer) and cannot be safely deleted (as explained here: https://serverfault.com/q/...
user avatar
  • 795
1 vote
1 answer
161 views

How can I make alias for desktop folder on XP?

I don't want other users save file to system drive, how can I make a direct link of desktop folder to another folder?
user avatar
3 votes
4 answers
9k views

Windows 10 Upgrade and Junctions

I have a 465 GB SSD and a 4 TB HDD in my Windows 7 Ultimate x64 machine. I have a junction (not symlink) that points C:\Users to D:\Users. Does anyone know if the Windows 10 upgrade will still ...
user avatar
  • 1,561
2 votes
1 answer
1k views

Update junction in Windows 8.1

I'm doing this: net stop wuauserv then: rename c:\windows\SoftwareDistribution SoftwareDistribution.old and then: mklink E:\windows\SoftwareDistribution \D I'm doing \d in the end because ...
user avatar
3 votes
2 answers
2k views

Can I create a shortcut which points to a specific drive regardless of its drive letter?

I noticed that I cannot use \\?\Volume{f993747a-5d7a-4de1-a97a-c20c1af1ba02}\path\to\target or \Device\HarddiskVolume5\path\to\target as shortcut targets—it won't work. It only works when I use drive ...
user avatar
  • 175