Questions tagged [mklink]

Mklink is a utility provided by Microsoft to create symbolic links to folders and files on Windows, such as "ln" utility in Linux.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

Where did mklink go, it is not recognized in Windows-11 Home? [duplicate]

Following some hack for changing home directory name, you need to link the old directory to the new. Instruction said to use mklink. However, mklink is not recognized in Windows-11 Home. Where did it ...
not2qubit's user avatar
  • 2,285
0 votes
1 answer
2k views

mklink gives message "invalid switch"

So I'm trying to move Whatsapp Desktop's media folder from C drive on Windows 10, where I have limited space, to E. I closed Whatsapp (also via the task manager). I moved the media directory to E, and ...
avshae's user avatar
  • 33
0 votes
0 answers
69 views

mklink /d locked out after reboot

Both PC are having the same User name, but different password. PC-1: TestUser / pwd1 PC-2: TestUser / pwd2 Reproduce problem: From PC-1 explorer, click on PC-2 and key in TestUser/pwd2 Create a link ...
s k's user avatar
  • 113
0 votes
2 answers
119 views

Sudo equivalent under windows: mklink, runas requires password, whereas opening an Administrator cmd doesn't

Sometimes I run into the wild idea of creating a symbolic link à la Windows using MKLINK. However, that immediately shouts at me that I'm not privileged enough to do so. My user is an admin, but not ...
tomoyo255's user avatar
0 votes
0 answers
66 views

problems creating symbolic links in Windows10

I cannot do mklink, not even as administrator (account 'admin'). I get the message "You don't have sufficient privileg..." or "Access denied". What I tried to do is this, as ...
Staffan Cronstrom's user avatar
0 votes
1 answer
160 views

Resilient file or directory linking or automatic link updating?

Is there a file or directory link method that would be dynamic/resilient against target change? I mean if I create a link mklink /d test c:\test I can change the link name after but not rename/move ...
Bricktop's user avatar
  • 303
0 votes
1 answer
433 views

Trying to backup iPhone to external HDD on windows using iTunes mklink

I'm a total noob at this, I'm trying to backup my iPhone on a Windows 10 PC to an external HDD because the SDD internal is too small. The drive I'm trying to backup to is D Drive. This following ...
Yeah Nah's user avatar
2 votes
1 answer
609 views

Windows 7: create symbolic directory link from NAS to NAS

T: is a NAS. I want to have a symbolic link allowing me to choose which of several hierarchies is the "current version" of something. I've tried the following as normal user: C:>T: T:>...
Swiss Frank's user avatar
2 votes
1 answer
537 views

Windows - can I alias a local folder to a "spoofed" non-existent UNC name?

I am troubleshooting code that runs on a customer's network. I have all the data files and configuration files from the customer and am setting about trying to reproduce the issue. The problem is ...
rossmcm's user avatar
  • 1,596
1 vote
0 answers
918 views

Permission problems when accessing symlinks via sftp and scp on Windows Server 2019 with OpenSSH

I set up OpenSSH on a Windows Server 2019 machine and now I'm able to access the machine via ssh from my Windows 10 client. Then I created a folder on the Windows Server which contains several ...
Johannes's user avatar
0 votes
2 answers
670 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. ...
Stephen Miller's user avatar
1 vote
2 answers
54 views

Why hard-linked texts are linked but images are not? The images act like different files

I used mklink /H 2.txt 1.txt to create a hard link of 1.txt. When I changed one file, the other file was changed, too. But when I did the same thing for a PNG image file, the changes were not shared. ...
Damn Vegetables's user avatar
0 votes
1 answer
311 views

how to link (with mklink) existing 'pictures' folder with already existing 'pictures' folder in onedrive

This might sound a bit complicated. I need to explain the history of my problem. Few years ago I found a helpfull hint to get your local pictures folder included in onedrive by adding a hard link ...
Marnix van Bruggen's user avatar
6 votes
4 answers
33k views

Can I move the C:\Users folder to D:\ drive?

Basically, the problem goes like this: I own a Windows 10 PC with 32 GB EMMC storage which caters to my need of sending mails, doing basic typing etc. There is a slot to insert a MicroSD card (D:\) ...
user avatar
5 votes
1 answer
334 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 ...
ninja star's user avatar
0 votes
1 answer
204 views

`mklink /j` with some files ignored

I use this command to backup files in OneDrive mklink /j "path_in_onedrive" "path_to_backup" Sometimes there are huge files in path_to_backup that I donot need, is there a way work like .gitignore ...
Animeta's user avatar
  • 121
2 votes
1 answer
6k views

mklink fails to create symlink on network drive

On Windows 10. Here's what I type, and Windows' response: mklink "path\to\link.pdf" "path\to\target.pdf" Access is denied. The desired location for the link is on a network drive. It makes no ...
foolishgrunt's user avatar
1 vote
0 answers
77 views

Using external drive to backup iPhone – issues with backup now on both locations

I used the instructions to establish a link to an external drive in mklink error: Cannot create a file when that file already exists, but now have both the C: and the external drive D: with a backup ...
max's user avatar
  • 11
0 votes
0 answers
206 views

Mklink File Type Link Chrome Browser Downloading Files

How do you use mklink to make PDF Files when downloaded go to a certain directory. I want only that file type to go to a directory in my documents folder called PDF So each time i download a PDF ...
Ravensp's user avatar
0 votes
1 answer
263 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 ...
IJustHaveASmallQuestion's user avatar
2 votes
0 answers
425 views

Delete symbolic link to c:\ when not being able to access c:\

I know how to create and delete symbolic links, but now I have a specific problem. I wanted to create a symbolic link from c:\mydata to d:\mydata, but forgot the first parameter, so I entered from c:\:...
Chris's user avatar
  • 21
0 votes
0 answers
195 views

Can/should I make a junction from C:\Program Files or DriverStore to my D drive?

I've got this really annoying setup on my laptop, where I've got a teeny little 128 GB SSD for my system drive, and a really generous 1TB HDD. Which does me no freakin' good when a whole bunch of ...
Shaul Behr's user avatar
  • 1,457
0 votes
1 answer
874 views

Using Junction, Symbolic Links, Location and simple move commands

Here is my setup * Bios is UEFI with Legacy Support * c:\ is a SSD Samsung 850 Evo 500GB. Single GPT, with NTFS partition. Over Provisioning is at the end of the drive in Administrative Tools->...
The Accountant's user avatar
3 votes
1 answer
3k views

Shortcut or symlink within OneDrive

Is it possible on Microsoft OneDrive 2018 to have either a shortcut or a symlink (e.g. made using mklink) to another folder within the same OneDrive sync? Specifically, is this possible: OneDrive ├╴ ...
villapx's user avatar
  • 163
2 votes
0 answers
123 views

Music metadata missing after mklink

I have successfully linked my NAS music folder to my Windows Music Library but there is a problem with the metadata within the symbolic linked folder. I did this with MKLINK In the original folder on ...
Michael Peberdy's user avatar
2 votes
1 answer
10k views

"File already exists" when targeting external drive with mklink

I'm trying to relocate a backup folder to an external hard drive with mklink. When I run the command I get the error "the file already exists" (that's the Korean underneath the command): (The won ...
Janet's user avatar
  • 21
2 votes
1 answer
805 views

How can I synchronize a folder FROM my C drive TO my Dropbox folder?

I'm trying to use Dropbox to synchronize some folders that are outside my dropbox folder on my computer. My dropbox folder is placed on my secondary hard drive which is an ordinary mechanical hard ...
CoffeeQuest's user avatar
1 vote
1 answer
3k views

mklink demands administrative privileges despite secpol.msc's "create symbolic links" permission being set and despite running cygwin's editrights

This is not a duplicate , because I tried the solution here How do I create a link in Windows 7 home premium as a regular user? and another solution too that I mention, and it didn't work and i'm ...
barlop's user avatar
  • 23.8k
0 votes
1 answer
2k views

FSUTIL HARDLINK CREATE ERROR: ACCESS IS DENIED

Trying to create hardlink to a folder in the same directory, on the same drive. H:\ParentFolder>fsutil hardlink create fldr01hrdlnk folder01 Error: Access is denied H:\ParentFolder>fsutil ...
tsilvs's user avatar
  • 143
0 votes
1 answer
1k views

Is it safe to configure the default Documents folders of two users to be symbolic links to the same folder on another drive?

In other words: There are two user profiles on a Windows 10 PC. Let's call them User_A and User_B. A Documents folder already exists on D:. Using an elevated command prompt... Navigate to c:\users\...
user428697's user avatar
0 votes
3 answers
10k views

Create a relative symbolic link in Windows 10 for file copies

I'm going to drastically simplify everything I have tried. For exact details, please review the CMD screenshot. I want to create a RELATIVE PATH symbolic link named [ RESOURCES ] at the following ...
Stephen Hanson's user avatar
0 votes
0 answers
167 views

Is it possible to create global .lnk Windows' files? [duplicate]

I tried to research for this, but nothing was clear to me. I'm a true newbie when talking about coding, as it has been a while I don't work with it. All I've found was VB, and some weird hex registry ...
K0media's user avatar
  • 355
0 votes
0 answers
291 views

Need symbolic link functionality WITHOUT symbolic pathname

Running Windows 10 Pro. I am trying to work around the 260 character MAX_PATH limitation native to the Win32 API. I have created a series of backups, which we'll say are designed to back up "...
Stephen Hanson's user avatar
1 vote
1 answer
813 views

Suppress output of MKLINK /J?

I am looking to have a batch file, where it suppresses the mklink output. I do not want the user to see the path. I was able to do this with > nul and robocopy. mklink /J "newpath" "originalpath" ...
Justin Thomas's user avatar
3 votes
1 answer
57k views

Difference between MKLINK /D and /J (Symbolic link and junction)

I have a SSD, and a RamDisk in other disc drive. I use MKLINK /D to move Google Chrome cache, from my SSD to my RamDisk. Please, my questions are: With MKLINK /D, where physically is my cache? SSD? ...
Esther Moellman's user avatar
2 votes
2 answers
16k views

Mklink - Symbolic Link with NAS & Onedrive

I have a NAS Storage drive on the network and want to link files from that to my onedrive account... details below.. W:\FILES\SUPERUSER (MAPPED DRIVE FROM NAS) linked to C:\ONEDRIVE\FILES (LOCAL ...
djsupersain's user avatar
2 votes
0 answers
348 views

mklink - subfolders named with non-ASCII characters are inaccessible

I've used mklink to create a a directory symbolic link to a network drive: mklink /d "music" "\\192.168.2.1\mybook\music\" This works fine. However, when trying to access sub-folders via that link ...
roded's user avatar
  • 121
5 votes
2 answers
8k views

Can I create a Windows Junction (Symbolic Link) aliased to a Drive Letter?

I have a bunch of data files on an E:\ drive. I'm moving all of that to a new computer and would like to consolidate many small drives (E, P) to one larger drive. But I want all the programs ...
Clay Nichols's user avatar
  • 5,296
2 votes
0 answers
2k 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 ...
MasterHD's user avatar
  • 273
1 vote
1 answer
121 views

Symlink prompting “Open with” [duplicate]

I can create a symlink: > mklink bravo.png alfa.png symbolic link created for bravo.png <<===>> alfa.png However this is on a virtual machine. For some reason if I create one on ...
Zombo's user avatar
  • 1
3 votes
0 answers
1k views

Symbolic link doesn't work across drives

I'm on Windows 10. Running the command: mklink /D "G:\test" "C:\test" ...Is successful. However, in explorer when I double click the folder on G:\ and try to access any file in there, it says "...
Zov's user avatar
  • 41
1 vote
1 answer
38 views

Issues after Hard Drive Failure - Used Mklink, Uninstalled/Reinstalled, Game won't launch

Ok quick background: My system is set up ssd for os and some programs and hdd for secondary programs/storage. I used mklink a while back to link the a game folder in C:\Program Data to a location ...
Byron Stevens's user avatar
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 ...
linkedchallenged's user avatar
0 votes
1 answer
483 views

Symbolic link - How does it work?

Using Windows 7 Overview- I have an SSD and HDD installed in my computer. I would like to have all data files (ie AppData) saved to the HDD, this way I avoid unnecessary read/writes to the SSD. Goal-...
Adjit's user avatar
  • 117
0 votes
0 answers
46 views

What (specifically) happens when you have Win7 move default user folders?

In C:\Users\Myself, I right-click on Videos folder, select "location" tab, click "Move" button, and enter "D:\Videos" as new location; then confirm that this location is added to the Videos library (...
mc510's user avatar
  • 63
28 votes
5 answers
44k 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/...
veljkoz's user avatar
  • 825
0 votes
1 answer
264 views

mklink when using it think path is a command

My first question here. I'm running Windows 8.1 when doing this. cmd mklink /j "d:/project/relx/_build/test/lib/relx/test/rlx_release_SUITE_data/relx-output796596/foo/lib/override_app106921-12.88.71" ...
dawi's user avatar
  • 1
3 votes
1 answer
5k views

Editing the hardlink doesn't edit the original file

I have a file at D:\JavaScript\CheckIban.js, and I want to reuse it in many places without duplicating it. Because when I fix a bug (change its content) I need that change to be propagated to all ...
Saeed Neamati's user avatar
0 votes
1 answer
565 views

Move C:\Users\tachikoma01\AppData\Roaming\Bitcoin to an other hardrive

I have a 120gb ssd and it's full. I want to use bitcoin armory which is going to take up to 50gb. And even if the software is installed on my G: hard drive, the software is still downloading datas to ...
tachikoma01's user avatar
0 votes
1 answer
300 views

Transferring my OneNote - notebook hyperlinks (links to pdf files) to new pc with a new userpath

I have a large onenote-notebook that I have been using for study notes. There are many hyperlinks to pdf files. The problem is that all these hyperlinks refer to paths starting with: "C:\Users\RL..." ...
drC1Ron's user avatar
  • 155