Questions tagged [junction]
Questions about working with NTFS junction points (somewhat similar to Linux symlinks).
105
questions
1
vote
1
answer
51
views
How can I create a symlink/junction to an executable (in Windows 10)?
When I try I get an error when trying to run the executable.
For example,
mklink /j foo.exe c:\Windows\System32\cmd.exe
Junction created for foo.exe <<===>> c:\Windows\System32\cmd.exe
c:\...
1
vote
0
answers
19
views
How can I move a folder without encountering issues related to cyclic folders and excessive disk space consumption?
I'm using the following command to move a folder:
robocopy "C:\Users\TTHCMM" "D:\C_Drive\Users\TTHCMM" /E /MT:32 /NFL /NDL /NJH /NJS
However, I've noticed that this command can ...
0
votes
1
answer
373
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 ...
7
votes
4
answers
930
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 ...
0
votes
2
answers
540
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. ...
5
votes
1
answer
13k
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?
0
votes
1
answer
1k
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 ...
0
votes
1
answer
285
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:
...
0
votes
0
answers
660
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 ...
5
votes
1
answer
306
views
Windows 10 mklink to c:/originalDirectory which preserves original files if they are deleted from the linked directory
I'm on Windows 10.
Imagine that I have a directory c:\originalDirectory and I create a link at c:\newDirectory by doing mklink /d c:\newDirectory c:\originalDirectory.
My question is about the files ...
0
votes
1
answer
341
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 ...
-1
votes
2
answers
296
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 (...
0
votes
1
answer
211
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,...
0
votes
1
answer
455
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....
2
votes
3
answers
7k
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 ...
0
votes
1
answer
183
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 ...
0
votes
0
answers
49
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 ...
1
vote
0
answers
386
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 ...
5
votes
4
answers
3k
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 ...
1
vote
1
answer
273
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 ...
2
votes
1
answer
488
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 (...
5
votes
2
answers
10k
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 ...
0
votes
1
answer
127
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 ...
3
votes
0
answers
2k
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 ...
1
vote
0
answers
55
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 ...
0
votes
1
answer
149
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....
1
vote
1
answer
367
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 ...
6
votes
2
answers
8k
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 ...
-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 ...
1
vote
1
answer
741
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 ...
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 ...
2
votes
1
answer
3k
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 ...
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 ...
2
votes
1
answer
4k
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:\...
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 ...
1
vote
0
answers
248
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 ...
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 ...
1
vote
0
answers
264
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?
0
votes
1
answer
269
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
...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
271
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 ...
9
votes
1
answer
3k
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?
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 ...
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 ...
28
votes
5
answers
42k
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/...
1
vote
1
answer
166
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?
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 ...
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 ...
3
votes
2
answers
3k
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 ...
0
votes
0
answers
126
views
Win 7 Create Folder Junction from Desktop to inside Dropbox Folder
I'm not asking how it can be done, I already know how to;
MKLNK /j C:\Users\<username>\Desktop C:\Users\<username>\Dropbox\Desk
What I want to know is whether or not I should. I know ...