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
0
votes
1 answer

How can I identify if a directory is a symbolic link (in contrast to a "real" local directory)?

I need to block access to network based directories. However by using tools like "mklink" users can create mapped directories which appear like local directories. I use a .net based code to get the UNC paths of the directories to identify network…
MartinHappyCoding
  • 311
  • 1
  • 3
  • 13
0
votes
2 answers

PowerShell mklink on multiple files with regular expressions

I have a bunch of folders with similar prefixes in the name, and I'd like to make symbolick links to these folders so that I can remove the prefix while respecting the original folder naming convention. Here are some example folder…
Chad
  • 1,434
  • 1
  • 15
  • 30
0
votes
2 answers

Capturing (failed) mklink command output

Does anybody know why the below happens and does anybody have a workaround? I'm strugging to capture mklink command output (via cmd.exe mklink > out.txt) Output is sent to out.txt fine if the mklink command is successful E.G: %comspec% /c mklink /d…
aciid
  • 11
  • 1
  • 2
  • 7
0
votes
1 answer

Trying to make a symbolic link to a Powershell script on a remote server

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. Becasue I have 2003 and 200! servers i first check if the patch…
willemdh
  • 796
  • 2
  • 13
  • 34
0
votes
2 answers

Windows batch nested function syntax inside function

I am having problems with my nested if syntax, i keep getting the error: 'ELSE' is not recognized as an internal or external command, operable program or batch file here is the function: :makejunction set LOCALFOLDER=%~1 set QIFOLDER=%~2 pushd…
0
votes
1 answer

Is it possible to mklink a directory to different target for different users? (windows 7)

Is it possible to mklink a directory to different target for different users? (windows 7) for example, c:\abc , userA check c:\abc will see his files actually mklink to other place, say, %USERPROFILE%\abc, while userB check c:\abc will see his own…
lwhuang
  • 45
  • 3
-1
votes
0 answers

mklink doesn't works with moved file

I have a directory C:\study\runnable with a subdir conf, containing a batch file e.bat and a test.jar file and a configuration file configuration.conf. test.jar works if it reads configuration.conf. When I launch test.jar it works. I make a link…
francesca
  • 1
  • 2
-1
votes
1 answer

mklink Junction Point Link cannot create file

I'm trying to create a .BAT file where it will create App Links and Web Links using MkLink but I can't seem to get it running. @echo off SET LINK_APPROOT=C:\Users\Intern\Desktop\debugprojects\GeneratedAppServer SET…
leonard chan
  • 161
  • 1
  • 13
-1
votes
1 answer

want to find mklinked folders by program

is it possible to find out 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. I appreciate any help or clues to solve the problem. Mehrdad…
1 2 3 4 5
6