Windows/Link: Difference between revisions

From Omnia
Jump to navigation Jump to search
Created page with "== Create Symbolic Link == 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""
 
No edit summary
 
Line 9: Line 9:
Powershell:
Powershell:
  New-Item -ItemType SymbolicLink -Path "C:\path\to\link" -Target "C:\path\to\target"
  New-Item -ItemType SymbolicLink -Path "C:\path\to\link" -Target "C:\path\to\target"
== Git-Bash Code Link ==
Create /code link to c:\code (run as administrator in CMD)
cd "C:\Program Files\Git"
mklink /d code c:\code
== keywords ==

Latest revision as of 00:20, 21 November 2026

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