Mklink 2021 — Cmd

New-Item -ItemType SymbolicLink -Path "Link" -Target "Target"

The `mklink` command is a powerful tool for organizing and linking files and directories in Windows, providing flexibility in managing your file system. However, use it with caution and ensure you understand the implications of creating symbolic links, especially in system directories. cmd mklink

| Type | What it points to | Works across drives? | Works across network? | Admin rights needed? | Use case | |------|------------------|----------------------|----------------------|----------------------|----------| | (symlink) | File or folder | Yes | Yes (with caveats) | Yes (by default) | Most flexible; general purpose | | Hard Link | File only (same volume) | No (same drive required) | No | No | Saving space; keeping multiple file paths to same data | | Directory Junction | Folder only | Yes (local drives) | No | No | Redirecting folders (e.g., moving C:\Users to D:) | | Works across network

Яндекс.Метрика