Windows/Link

From Omnia
Revision as of 00:20, 21 November 2026 by Kenneth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WARNING: RUN FROM ELEVATED ADMINISTRATOR WINDOW!!

Command line:

# Create Directory Symbolic Link
mklink /D Link Target

Powershell:

New-Item -ItemType SymbolicLink -Path "C:\path\to\link" -Target "C:\path\to\target"

Create /code link to c:\code (run as administrator in CMD)

cd "C:\Program Files\Git"
mklink /d code c:\code

keywords