New-Item -ItemType symboliclink -Path <path to location> -Name <the name> -Value <path to target>
e.g. New-Item -ItemType symboliclink -Path C:\Users\thiemo -Name link_to_target -Value C:\Users\thiemo\Downloads
MKLINK [[/D] | [/H] | [/J]] Verknüpfung Ziel
/D Erstellt eine symbolische Verknüpfung für ein Verzeichis.
Standardmäßig wird eine symbolische Verknüpfung für
eine Datei erstellt.
/H Erstellt eine feste Verknüpfung anstelle einer
symbolischen Verknüpfung.
/J Erstellt eine Verzeichnisverbindung.
Verknüpfung Gibt den Namen für die symbolischen Verknüpfung an.
Ziel Gibt den Pfad (relativ oder absolut) an, auf den die
neue Verknüpfung verweist.
e.g. MKLINK /D C:\Users\thiemo\link_to_target /J C:\Users\thiemo\Downloads
Both examples result in a symbolic link, file path
C:\Users\thiemo\link_to_target, pointing to
C:\Users\thiemo\Downloads
No comments:
Post a Comment