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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
335 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 ...
narek3's user avatar
  • 11
0 votes
1 answer
51 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.
Mehrdad Ahankhah's user avatar
2 votes
2 answers
16k 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 ...
AStopher's user avatar
  • 2,363
1 vote
1 answer
2k 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:\...
MrBean56's user avatar
0 votes
1 answer
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 ...
ChiliYago's user avatar
  • 5,165
4 votes
2 answers
826 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" ...
RoboJ1M's user avatar
  • 143
9 votes
3 answers
52k 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 ...
Jarek's user avatar
  • 143
1 vote
1 answer
3k 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: ...
Michael come lately's user avatar
1 vote
1 answer
452 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 ...
Coder's user avatar
  • 466
5 votes
1 answer
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=...
Vixxd's user avatar
  • 51
1 vote
1 answer
2k 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 \$...
willemdh's user avatar
  • 123
16 votes
5 answers
38k 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 (...
MarnixKlooster ReinstateMonica's user avatar
2 votes
0 answers
873 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:\"...
Matt's user avatar
  • 21
1 vote
0 answers
1k 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 ...
Simon Greatwood's user avatar
8 votes
5 answers
10k 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 ...
Eonil's user avatar
  • 5,734
4 votes
1 answer
8k 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 ...
Trevor Boyd Smith's user avatar
1 vote
3 answers
2k 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 ...
omega1's user avatar
  • 347
12 votes
1 answer
1k 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 ...
Iszi's user avatar
  • 13.8k
0 votes
1 answer
2k 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 ...
Basj's user avatar
  • 1,809
6 votes
1 answer
6k 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 ...
James's user avatar
  • 63
2 votes
1 answer
9k 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 ...
Blake's user avatar
  • 356
8 votes
2 answers
5k 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 =>...
Emile's user avatar
  • 81
25 votes
4 answers
17k 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, ...
Jellicle's user avatar
  • 2,254
1 vote
0 answers
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 ...
Blake's user avatar
  • 356
1 vote
1 answer
2k 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) ...
David Debian's user avatar
0 votes
0 answers
524 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 ...
Chris's user avatar
  • 505
0 votes
0 answers
266 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 ...
Yustme's user avatar
  • 145
2 votes
2 answers
5k 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 ...
Blueberry's user avatar
  • 215
1 vote
0 answers
440 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 ...
Owen Davies's user avatar
2 votes
1 answer
9k 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 ...
user avatar
6 votes
3 answers
10k 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 ...
Se Norm's user avatar
  • 173
9 votes
2 answers
14k 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. ...
Blueberry's user avatar
  • 215
6 votes
3 answers
9k 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 ...
Zombo's user avatar
  • 1
17 votes
3 answers
51k views

Why can't I make a symbolic link (mklink) even when I'm an administrator [duplicate]

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. ...
Ben's user avatar
  • 326
2 votes
1 answer
7k 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 ...
user avatar
1 vote
0 answers
2k 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 ...
MechEngineer's user avatar
36 votes
2 answers
50k 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 ...
paradroid's user avatar
  • 23k
5 votes
3 answers
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, ...
Edward Tanguay's user avatar
2 votes
1 answer
3k 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 ...
Scott Chamberlain's user avatar
3 votes
1 answer
4k 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: ...
hyperknot's user avatar
  • 892
6 votes
2 answers
5k views

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

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 use to edit it - mklink /h ...
Mr_and_Mrs_D's user avatar
4 votes
0 answers
3k 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 ...
John McCarthy's user avatar
1 vote
1 answer
652 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 ...
Craig's user avatar
  • 941
5 votes
2 answers
8k 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 ...
Giffyguy's user avatar
  • 1,032
45 votes
3 answers
50k 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: ...
Piotr Dobrogost's user avatar
1 vote
3 answers
1k 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 ...
Joshua Laferriere's user avatar
46 votes
10 answers
148k views

Access is denied error, when I mklink on Windows 7 [duplicate]

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:...
prosseek's user avatar
  • 5,914
14 votes
2 answers
2k 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 ...
Clayton Hughes's user avatar
26 votes
2 answers
45k 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..
Pablo's user avatar
  • 4,765
48 votes
9 answers
123k 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: You do not have sufficient privilege to perform this operation. I used the same command ...
ToZo99's user avatar
  • 481