Create hard links and soft links under Windows via command prompt!
Sometimes you need space on the hard drive where there is none at all. Hard links and soft links under Windows 11, 10, ... etc. as well as MS Server can help!
1.) Creating the hard links / fixed links on Windows!
For long paths "" use for example "C:\This is a long\path with\Folder xyz"
mklink /H /J "C:\Folder_Hard_Lnk" "C:\True_Folder"
You can also create a hard link on another drive, for example from C:\ to D:\
mklink /H /J "D:\Folder_Hard_Lnk" "C:\True_Folder"
Important: both drives must be in NTFS format !
2.) The creation of soft links / symbolic links!
Almost the same but without the hard-link argument /H
mklink /H /J "c:\Symbolic_Lnk" "C:\True_Folder"
3.) What do you need that for, isn't it confusing?
Yes, it is confusing, but sometimes it can be helpful because you can avoid path and folder problems by setting the hard or soft links. Is not now for the standard Windows 11, 10, ... etc. Users, but it's good to know how it works!
Microsoft Windows [Version 10.0.22000.184]
(c) Microsoft Corporation. All rights reserved.
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link Specifies the new symbolic link name.
Target Specifies the path (relative or absolute) that the new link
FAQ 120: Updated on: 13 September 2021 11:05
This is how you can see via the command prompt which websites / servers your computer is secretly connecting to under Windows 11, 10, and MS Server OS
You can simply test the hard drive speed with a command prompt or PowerShell under Windows 11, 10, or MS Server 2022, 2019, etc. There are many
Deactivating, activating and listing the network adapters via command prompt or Powershell is quite easy to do under Windows 11, 10, and MS Server Everyone
Connecting or disconnecting network drives via the command prompt under Windows 11, 10, or MS Server without mouse clicks is a very practical option
Yes, and its easy to optimize drives on Windows 11, 10, from the command prompt using the defrag command Everyone probably knows the drive optimization
Its easy to export a list of running processes as a text file using the command prompts cmd.exe on Windows 11, 10, etc 1. exporting the running
Sometimes you need the SHA value of a file, in the command prompt you can create a file hash under Windows 11, 10, Hash algorithms: MD2 MD4 MD5 SHA1
»» My question is not there in the FAQ
Keywords: windows, console, create, hard, links, soft, command, prompt, need, space, drive, server, Questions, Answers, Software