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.

101 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
  • 5
  • 14
  • 24
47
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
  • 471
  • 1
  • 4
  • 3
44
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,402
  • 14
  • 57
  • 78
44
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
  • 5,794
  • 21
  • 59
  • 78
35
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
  • 22,761
  • 10
  • 76
  • 114
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
  • 1
  • 9
  • 11
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,683
  • 19
  • 63
  • 101
24
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…
JellicleCat
  • 2,227
  • 4
  • 24
  • 31
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
  • 2
  • 4
  • 11
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
  • 803
  • 10
  • 21
15
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…
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
  • 1
  • 12
  • 19
11
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
  • 13,585
  • 44
  • 113
  • 181
9
votes
2 answers

Access is denied on mklink

I am trying to get a symlink working over a network drive. I have already tried suggestions on questions already asked, such as running as administrator and checking if the directory already exists. Unfortunately it still gives me the following…
8
votes
1 answer

How do I figure out if a link is a symbolic link, a hard link, or a directory junction in Windows?

If I've created a directory link via mklink, how can I figure out if it was a symbolic link, a directory junction, or a hard link (ie whether I used /d, /j, or /h)?
Daniel Plaisted
  • 504
  • 1
  • 4
  • 9
1
2 3 4 5 6 7