Questions tagged [mklink]

mklink is a Windows command line utility that manages NTFS symbolic links, hard links, and directory junctions, included in versions NT 6.0 (Vista/Server 2008) and higher.

The mklink utility's primary function is to manage NTFS symbolic links. The command was introduced in Windows Vista and Windows Server 2008 (NT 6.0), in which full functionality was added to Windows. It can also be used to manage s and a type of symlink called a "directory " (a subcategory of ), although hard links and reparse points were available in earlier versions of Windows NT and are managed with .

Documentation

84 questions
1
vote
0 answers

how to creat a mklink /J but don't delete content in the copied folder even I delete the "root" content

I am trying to run the following command: mklink /J "C:\Users\xx\Desktop\to 117" C:\Users\xx\Desktop\117 but once the content in 117 gets deleted, the to 117 also gets deleted. Any suggestions for me if I delete the 117 content but the to 117…
love233126
  • 49
  • 4
1
vote
1 answer

Symbolic link to .net 4.5 app won't work

Environment: Windows Server 2008 R2 SP1 I created a symbolic link to gacutil.exe for .NET 4.0. The command is: mklink C:\Users\Administrator\bin\gacutil4.exe "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe" When…
user2429888
1
vote
1 answer

MSWord breaking Hard Link

Question: Is there any option to work on an MSWORD file with a Hard Link (mklink /h) to another directory? What I've experienced: After creating a Hard Link of a .docx file onto a different directory, modifying either the original document or the…
j4nSolo
  • 342
  • 1
  • 14
1
vote
1 answer

mklink: symlink to batch file not running batch file

The problem here is that, after creating a symlink to a batch file, the link does not run the batch file. Example: mklink x x.cmd When clicking on x it opens x.cmd in Notepad! Ordinary shortcuts (.lnk-files) work as expected. > ftype…
Andreas Spindler
  • 7,568
  • 4
  • 43
  • 34
1
vote
1 answer

mklink, target replacement denied in Visual Studio 2010 (C#)

mklink behaves very strangely on the following accounts: it requires command.exe run as Administrator (what for?), although I am admin user already if I have a symlink app.exe -> app.20.21.exe then Visual Srudio 2010 refuses first to compile to…
0
votes
0 answers

.NET Core application cannot access to symbol link that created by mklink from other machine (Windows)

My application runs on two servers, we need to share resource/assets among them by creating another Windows machine. However, our application (running on .NET Core 2.1) cannot access to shared resource. Please help me, thanks. Tried to config…
tavsta
  • 11
  • 3
0
votes
1 answer

Given an "Access is denied" error when attempting to establish a hard link

Im starting a new project and part of my project setup is to establish a hard link with the game and where I program, I do this to keep from acidentily deleting the project(I've done this in the past). Usally, it works just fine but it did not work…
0
votes
1 answer

Move pg_wal directory location/files of postgres 14 database from one drive to another drive in Windows server

I have a requirement in the Postgres 14 database, which is installed in a Windows server environment. I want to move the pg_wal directory files from my G drive, where I installed my Postgres 14 database, to my D drive. This is to reduce the…
0
votes
0 answers

mklink or subst link to a different drive and folder

I have lightroom classic with several uneditable links in it to this directory: M:\Maindata\Docs\Users\Public\Pictures\Exports\ I now use this directory C:\Users\username\OneDrive\Pictures\Exports I want to have lightroom see…
0
votes
1 answer

mklink directory in wwwroot stops showing updated data after a few iterations of changes to files in the directory

On Windows 10 using IIS as the Web Server, it seems that directories created under wwwroot with the mklink command at some point stop seeing changes made to files in that directory. The following is what I did to test this out: I created a…
user1828108
  • 447
  • 1
  • 4
  • 11
0
votes
1 answer

How can I create symlink on Windows to remote Linux folder using SSH?

I want to create a link to remote Linux folder from Windows 10 machine. I see Windows has SFTP and SCP commands built in for accessing remote machines. So there must be some way to create links as well. I wonder if we can we do something like below?…
vikrant21st
  • 93
  • 1
  • 7
0
votes
1 answer

Why mklink /j works when manually entering but not when run using exec.Command?

If I manually run the following command in Windows, it runs fine and creates the Junction Directory. mklink /j "c:\Users\userid\OneDrive - Enterprise 365\backup\C\Users\userid\test" c:\Users\userid\test But, if I do it programmatically with Go,…
xil3
  • 16,305
  • 8
  • 63
  • 97
0
votes
1 answer

Bazel BUILD link Intel Mkl

I'm writing a simple Bazel BUILD file but I have to include MKL library. My main.c include this library: #include #include #include #include #include "omp.h" #include "mkl.h" #include…
epascolo
  • 135
  • 2
  • 9
0
votes
1 answer

batch file to symbolic link files from different folders into common folder

I have been trying to make symbolic links from multiple sources. I have a reg.txt file in the new directory as well as the sort.bat. the reg.txt :- redcar1=123456 greencar2=345678 In directory called vehicles with sub directories of 'reg_numbers'…
marc
  • 1
0
votes
2 answers

Batch: how to mklink with arguments?

How to create a symlink in windows including arguments using mklink, (and no powershell)? I want to create on Desktop a link OpenVPN which links to "C:\Program Files\OpenVPN\bin\openvpn-gui.exe", with argument: --connect client.ovpn So I tried: cd…
Acca Emme
  • 356
  • 2
  • 11