Mklink is a utility provided by Microsoft to create symbolic links to folders and files on Windows, such as "ln" utility in Linux.
Questions tagged [mklink]
105 questions
                    
                    77
                    
            votes
                
                7 answers
            
        How do I create a link in Windows 7 home premium as a regular user?
I am a Linux guy and as such I am very lost when I try and do anything is Windows. I am trying to create the following link:
mklink /d C:\backup\data \\myth\backup\data
But I do not have sufficient privilege to preform this operation. How do I get…
        
        stephenmm
        
- 1,297
 
                    53
                    
            votes
                
                9 answers
            
        Got not sufficient privileges message in CMD when logged on as administrator
I was trying to use mklink command in cmd (I have Windows 7 OS) I was logged on as administrator, but I got:
You do not have sufficient privilege to perform this operation.
I used the same command in Vista, it worked OK. Any ideas why it does not…
        
        ToZo99
        
- 531
 
                    48
                    
            votes
                
                10 answers
            
        Access is denied error, when I mklink on Windows 7
My home directory is c:\Users\phi as a user phi, and I made a directory at c:\Users\abc. I need to symbolic link from c:\Users\phi\hello to c:\Users\abc\hello. 
I run the following command 
mklink c:\Users\abc\hello c:\Users\phi\hello
But I get…
        
        prosseek
        
- 6,054
 
                    45
                    
            votes
                
                3 answers
            
        Using mklink /h results in "Access is denied."
From command prompt with Administrator privilages:
c:\>mklink /h c:\dirA c:\Users\Piotr\dirB
Access is denied.
I'm on Vista x64. Using /j or /d instead of /h works. What's the problem?
Related:
Access is denied error, when I mklink on Windows 7.
        
        Piotr Dobrogost
        
- 5,914
 
                    37
                    
            votes
                
                2 answers
            
        How do you make a symbolic link with a relative path using mklink?
This web page implies that it is possible to make symbolic links with relative paths using mklink.
I have tried all sorts of ways to make relative symbolic links, but I always end up with an absolute path.
How is it done?
        
        paradroid
        
- 23,297
 
                    28
                    
            votes
                
                5 answers
            
        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/15746).
Now, the mklink provides a neat little…
        
        veljkoz
        
- 825
 
                    27
                    
            votes
                
                4 answers
            
        Use mklink in msys
I understand that Windows later-than-or-equal-to Vista provides the mklink shell command. I'd like to make use of this from the Msys terminal. Any idea how?
When I enter mklink on the msys terminal, it outputs sh: mklink: command not found. Msys…
        
        Jellicle
        
- 2,356
 - 4
 - 28
 - 32
 
                    26
                    
            votes
                
                2 answers
            
        Windows 7: hard link, symbolic link and junction
Possible Duplicate:
What is the difference between NTFS hard links and directory junctions? 
What's the difference between them? in examples..
        
        Pablo
        
- 4,773
 - 19
 - 68
 - 102
 
                    17
                    
            votes
                
                3 answers
            
        Why can't I make a symbolic link (mklink) even when I'm an administrator
When I run mklink /D "C:\Users\bwilliams\AppData\Roaming\Sublime Text 2" "C:\Users\bwilliams\Dropbox\Sublime Text", I get this error `You do not have sufficient privilege to perform this operation.
Why not? I'm administrator, and just want to create…
        
        Ben
        
- 326
 
                    16
                    
            votes
                
                5 answers
            
        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 (cmd /c mklink /h link.mp3 orig.mp3).  This results…
        
    
                    15
                    
            votes
                
                4 answers
            
        What directories in a Windows 7 SSD install would you link/junction to an HDD?
I'm planning on installing an SSD/HDD combination with the SSD as my boot (Windows 7 x64) drive, and a spinning HDD as a storage drive.
Are there any log files in particular best suited to a mklink to the SSD?
Is it worthwhile to move/link the main…
        
        Tracker1
        
- 883
 
                    14
                    
            votes
                
                2 answers
            
        When would one prefer a Junction Point (Directory Hard Link) over a symbolic link?
Technically, I get the difference between the two; this is just a usage question.
In particular, I want to move some folders off of a smaller hard drive and onto a larger one, but I need to use some sort of link to do it--the application that uses…
        
        Clayton Hughes
        
- 1,369
 
                    13
                    
            votes
                
                1 answer
            
        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 links" - but I'm having a hard time truly…
        
        Iszi
        
- 14,163
 
                    11
                    
            votes
                
                3 answers
            
        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 machines, cmd started with administrative…
        
        Jarek
        
- 163
 
                    10
                    
            votes
                
                5 answers
            
        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 these links to other users on other machine. 
        
        Eonil
        
- 6,094