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
29 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: ...
0
votes
0answers
19 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 ...
3
votes
1answer
2k 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
73 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 ...
1
vote
2answers
490 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
186 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)" ...
0
votes
0answers
50 views

Windows Explorer Search for Files and Hardlinks

This should be classified as MS Windows weirdness. I have a "file A" in a "folder A". In "folder B", I create a hardlink called "file Ah". It is clearly visible inside of "folder B". No problems so ...
0
votes
0answers
86 views

Using mklink after network share data migration

Background: We have an application which stores its files on a network share (mapped as "Z:" drive for all users). This application contains hundreds of links to Z:/A/B/X, Z:/A/C/Y, Z:/A/D/W, (...) ...
1
vote
0answers
121 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
243 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
127 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
224 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
177 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 ...
0
votes
0answers
295 views

Can't sync windows network drive to dropbox (mklink)

Background I have a very dodgy VPN access to the network drive at my work. I work on pretty large files and it is painfully slow to transfer via VPN. Also, there are no 'version control' as there is ...
2
votes
1answer
1k 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
2k 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
177 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 ...
0
votes
1answer
454 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
2k 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
487 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
260 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
197 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
505 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
207 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
812 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
790 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
905 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
723 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 ...
5
votes
3answers
9k 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
4k 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
922 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
8k 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
736 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
2k 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 ...
2
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
386 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
4k 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
9k 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
679 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 ...
11
votes
10answers
23k 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 ...
18
votes
2answers
29k 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..
11
votes
5answers
22k 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 ...
31
votes
8answers
45k views

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 ...
5
votes
1answer
763 views

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)?
14
votes
4answers
6k views

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 ...