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

learn more… | top users | synonyms

0
votes
1answer
24 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
1answer
91 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 ...
0
votes
1answer
159 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 ...
0
votes
0answers
222 views

mklink /j vs mklink /d on multiple machines and with file shares

I'm starting to use cloud sharing solutions (e.g., Dropbox, SpiderOak) to backup and sync files between various machines I use. When doing this I've decided to place all my backups under a given ...
0
votes
0answers
35 views

Relocate AppData, except hard-linked files and folders

Since I got an SSD, i'm trying to relocate some files and folders (temp,logsetc) to my external disk (which is always attached). I did this with my appdata folder as well, and used the mklink command ...
0
votes
1answer
742 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 ...
0
votes
2answers
52 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" ...
0
votes
1answer
749 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
280 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
47 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 ...
5
votes
1answer
5k 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: ...
1
vote
0answers
169 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 ...
3
votes
3answers
2k 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 ...
1
vote
0answers
242 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)" ...
1
vote
0answers
247 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 ...
0
votes
1answer
630 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 ...
0
votes
3answers
212 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 ...
9
votes
1answer
240 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
244 views

Windows : how to know if a symbolic link still works

I have lots of symbolic links (windows 7). How to know if there are working or if they are dead (ie original file has been deleted/moved/renamed) ? I tried if not exist mylink.txt echo The link is ...
2
votes
1answer
2k 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 ...
1
vote
1answer
3k 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 ...
1
vote
1answer
316 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 ...
1
vote
1answer
870 views

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, ...
1
vote
0answers
3k views

mklink /d not working

I have a folder with my pictures on a network drive. I would like that folder in the pictures library in windows 8. It wouldn't let me add it since the network drive isn't indexed. Windows help said ...
1
vote
1answer
641 views

How to Use Mklink Batch-files with FOR command? (Automatic Junction-Point Recreation)

I'm trying to create a batch-file that creates (DIR) junction points; I commonly use. Bellow is a script, which creates multiple links, to the same location. @echo off for /f %%i in (input.txt) ...
0
votes
0answers
307 views

Mklink to a network share, disconnect results in “location is not available”

I've used mklink in Windows 7 to map a local folder to a network share (the iMac sitting next to me on the gigabit hub at my desk). However, when the iMac goes to sleep, the linked folder becomes ...
0
votes
0answers
218 views

moving User directory failed mlink

I followed this tutorial: move user folder And after restarting my pc and logging in, i get this error message: "C:\Windows\system32\config\systemprofile\Desk top refers to a location that is ...
1
vote
2answers
897 views

remote symbolic link / junction

Might be a pretty obvious one but have had some trouble finding solid answers. I have a directory on a windows network share containing different versions of an application. I would like to have a ...
1
vote
0answers
237 views

Mklink to a password protected folder

I have machine A and a C$ share on machine B. On machine B, I only have access to the share and nothing else (it is password protected). How can I mklink from machine A to the C$ share invoking ...
2
votes
1answer
1k views

Mklink to a password protected folder

I have machine A and a C$ share on machine B. On machine B, I only have access to the share and nothing else (it is password protected). How can I mklink from machine A to the C$ share invoking ...
3
votes
1answer
1k views

Is it possible to create a symlink to a webdav directory on Windows?

I know I can map a webdav folder to a drive letter in Windows, but I need to map ~10 different webdav folders (different servers) and assigning a drive letter would be ugly. Is it somehow possible to ...
1
vote
2answers
2k views

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. ...
1
vote
2answers
913 views

Windows hard link taking up space?

On my computer I create a hard link mklink /h git-link.exe git.exe Hardlink created for git-link.exe <<===>> git.exe Now they both take up space 2012-04-17 12:14 AM 6,905,039 ...
6
votes
3answers
13k views

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. ...
1
vote
1answer
5k views

How do I mklink junction + move content from C:\Program Files to D:\Program Files?

I have a few applications that absolutely refuse to install into anything but C:\Program Files or C:\Program Files(x86). Changing the registry keys for default install folders doesn't seem to provide ...
1
vote
0answers
1k views

Windows 7 Symlink to network drive root

My Ubuntu server provides storage to my Windows 7 workstation through the use of SMB and network drives. One symlink currently links from a network drive to my iTunes library folder. Within that ...
7
votes
1answer
10k views

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 ...
3
votes
2answers
3k views

How to sync files on Windows 7 so Dropbox notices the changes

I want a file on my hard drive in Windows 7 to sync to my public dropbox folder. I can do this with: mklink /H "c:\dropbox\Public\test.txt" "c:\data\test.txt" And the first time after I do this, ...
2
votes
1answer
925 views

Batch files can not be a passed a path with spaces when it is elevated

I am trying to create a batch file that needs to be passed a path and has operations in it that requires elevation (I use mklink in it). Here is how to recreate the problem. Make a .bat file that ...
2
votes
1answer
1k views

How is the “AppData\Local\Application Data\” directory linked?

I deleted "AppData\Local\Application Data\" from my profile and I want to create the link again. My problem is that if I create an mklink to %localappdata%, it behaves differently than the original: ...
4
votes
2answers
3k views

Windows 7 mklink - hard link's attributes (expected !) + contents do not affect the linked file

Now - this is driving me crazy. I created a hard link pointing to a file in my dropbox dir - the link was created inside a folder where this file needs to be in order to be accessed by the programs I ...
3
votes
0answers
2k views

Windows 7 NTFS Symbolic Link - Network Share Availability/Timeout

In Windows 7 and Windows Server 2008, is there a way to quickly detect if the target of a symbolic link is available? For example, a symbolic link is created to a remote share UNC using the ...
1
vote
1answer
423 views

Why can't I create a junction with Dropbox?

Had to relink my Dropbox after some problems and realized that my old Dropbox folder is "My Dropbox" and the new is "Dropbox". I went ahead and renamed the folder so I wouldn't have to download all of ...
2
votes
2answers
5k views

How Can I Create a NTFS Directory Redirect in Windows 7 Enterprise?

I am using DeepFreeze to keep my C:\ drive from getting corrupted, but I need the "C:\Users" directory to be redirected (like a virtual directory or alias) to "D:\Users" so that basic changes to user ...
15
votes
4answers
11k views

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: ...
1
vote
3answers
756 views

What can I not symlink/mklink in the windows folder (i.e. prevent booting)

I have a huge project. I got the scripting down. The script dumps to a .txt file a list of all files under or over a certain size. I then move the files to another hd (depending on how I setup my ...
12
votes
10answers
30k views

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 ...
8
votes
2answers
1k views

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 ...
19
votes
2answers
33k views

Windows 7: hard link, symbolic link and junction [duplicate]

Possible Duplicate: What is the difference between NTFS hard links and directory junctions? What's the difference between them? in examples..
13
votes
5answers
28k views

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 a " you do not have sufficient privilege to perform this operation" message. I used the same ...