Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
51 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 ├╴ ...
0
votes
0answers
60 views

Re-sharing smb files of third party through mklink on win server

We have one our windows servers 2012 R2. And a file server provided by a third party, which provides a volume available thru CIFS/SMB. We want re-share folder from the file server through our server. ...
2
votes
0answers
62 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
153 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 ...
0
votes
1answer
377 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 ...
0
votes
0answers
291 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 ...
0
votes
1answer
277 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\...
0
votes
3answers
2k 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 ...
0
votes
0answers
74 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 ...
0
votes
0answers
181 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 "...
1
vote
1answer
266 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" ...
2
votes
1answer
16k 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? ...
2
votes
2answers
8k 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 ...
2
votes
0answers
174 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 ...
1
vote
1answer
1k 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 ...
2
votes
0answers
547 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 ...
1
vote
1answer
46 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 ...
3
votes
0answers
810 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 "...
1
vote
1answer
26 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 ...
0
votes
1answer
367 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 ...
0
votes
1answer
164 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-...
0
votes
0answers
35 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 (...
23
votes
5answers
24k 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/...
0
votes
1answer
136 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" ...
1
vote
1answer
907 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 ...
0
votes
1answer
315 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 ...
0
votes
1answer
161 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..." ...
1
vote
0answers
225 views

mklink: junction actually doesn't work

I did this from cmd.exe as admin mklink /J "C:\Users\absolute\AppData\Roaming\Apple Computer\MobileSync\Backup" "E:\iPhone DATA\iTunes BACKUP” and I see confirmation of Junction in cmd and even do ...
0
votes
1answer
43 views

How to find hard linked folders via programming

Is it possible to identify if a folder is actually a hard link created by mklink? I want to get folders and subsequent sub-folders. But hard linked folders drops me into a loop.
0
votes
2answers
4k views

Can I use a Symbolic Link to 'move' C:\Users to another drive?

I have an OCZ Agility 3 64GB SSD, and have just downgraded to Windows 7 Professional from Windows 8.1 since I found Windows 8.1 to be too slow when my SSD was filled up. After seeing that this is an ...
1
vote
1answer
1k views

mklink in batch file keep returning insufisent permission

I made a code to execute an simbolic link between my Music folder and the music stored in my other hard drive @ECHO OFF SET /p bn=Band Name : md "%E:\Music\%bn%" SET /p dl=Album Name : mklink /d "E:\...
0
votes
1answer
3k views

Changing Win 8.1 Pro Store App Installation Folder

I have a Dell Venue 8 Pro tablet with Windows 8.1. The c:\ is very limited capacity at only 24GB. With the OS only on the c:\ I just have 8.6GB of free space. So I have added a 64gb SSD to the ...
2
votes
1answer
326 views

Can mklink make portable links?

Is there any way to create portable links in NTFS using mklink? Or it there a better solution? I want to be able to distribute an application in a zip file or folder copy where there is one "real" ...
2
votes
3answers
22k views

How to create a hard link in Windows using mklink command?

I've no problem in creating junctions and symbolic links through mklink, but can't create hard link using this command. It returns "Access denied", have tried on both Windows 7 and 8.1 on different ...
0
votes
1answer
2k views

Can't create symlink on Windows VM's mapped network drive

I have a Server 2008 VM (Parallels 9), and I share a folder from OSX via a mapped network drive "T:". I am trying to make a symlink from one folder on T: to another folder on the same drive, like so: ...
1
vote
1answer
150 views

Windows symlink does not show full path?

Current pwd: C: I created a sample symlink say: mklink /j C:\a C:\b\c Thereafter after i navigate using the symlink: cd a If I execute the 'pwd' command, I see the path as C:\a Is there a way ...
5
votes
1answer
6k views

Windows 8 - Moving Users Folder from SSD to HDD - “local volumes are required to complete the operation”, cannot complete system restore

I am trying to move C:\Users (SSD) to B:\Users (HDD) using the following tutorial on a clean install of Windows 8 -> upgraded to 8.1 straight away: http://webcache.googleusercontent.com/search?q=...
1
vote
0answers
914 views

Trying to make a symbolic link to a Powershell script

I'm trying to create a symbolic link with mklink through a Powershell script to a Powershell script on a remote server. this link should come on the desktop of all users. if(!(test-path -path \$...
8
votes
3answers
20k views

How to delete Windows NTFS hard link (mklink /h) while original is in use?

On a Windows NTFS file system, I have a file (say, orig.mp3). I open this file, through this path orig.mp3, in such a way that it is in use (say, by playing it in VLC). Then I create a hard link (...
2
votes
0answers
641 views

How do I map my Program Files directory to another disk?

I am trying to map my Program Files (x86) directory on my boot SSD to my secondary drive to save space. I am using this exact command: MKLINK /j \\Server-7\C:\"Program Files (x86)" \\Server-7\D:\"...
1
vote
0answers
973 views

Microsoft OneNote 2010 & symbolic links

OneNote uses a simple folder structure to organise its Sections and Sub-Sections - a Section is a file, a Sub-Section is a subfolder within the notebook which contains its own Section files. What I'd ...
5
votes
5answers
4k views

How to copy MS Windows symlink files as is?

I made some symlinks in MS Windows using mklink /D command. But when copy it, Windows Explorer always perform deep copy instead copying symlink itself. How can I just copy the link? I need to send ...
1
vote
1answer
5k views

On Windows 7 how do you check to see if a file is a hardlink? [duplicate]

I just created a hardlink in Windows 7 using mklink. When I use dir the output doesn't indicate that the new hardlink is a hardlink. Instead it looks exactly like the file it is pointing to. Example ...
1
vote
3answers
1k views

Error using mklink to create a 'virtual' folder

I am trying to use mklink so that when accessing c:\Audio it redirects to e:\Audio I have tried mklink /D c:\Audio e:\Audio Which creates a what looks like a shortcut folder in c:\Audio but if I ...
10
votes
1answer
318 views

When should I use hard links as opposed to soft links?

I'm about to start toying around with mklink but I'm still trying to get a real grip on this whole "symlink" thing. In particular, I've noticed there's two types of links - "soft links" and "hard ...
0
votes
1answer
1k views

How do I know if a symbolic link in Windows still works?

I have lots of symbolic links (Windows 7). How do I know if they are working or if they are dead (that is, the original file has been deleted/moved/renamed)? I tried if not exist mylink.txt ...
6
votes
1answer
5k views

In Windows 7, can I create a Symlink or Junction for winsxs or installer folders

I have an SSD as my C:\ drive, and it's only 128 Gig. I'm noticing that the C:\Windows subfolders "winsxs" and "Installer"--both of which I've read numerous places that one should never delete ...
2
votes
1answer
8k views

Creating symbolic link in windows 7 from NAS device

We currently use Carbonite for our file back ups. I have an N.A.S. with a bunch of files on it that I would like Carbonite to back up in addition to the local files on the machine with the Carbonite ...
4
votes
2answers
2k views

Windows Symlink & working directory

I have a directory called apps/myapp/ with a file myapp.exe which uses myapp.dll and some other dlls. Now lets say i want to symlink this to a directory, like one would do in linux. bin/myapp.exe =>...