Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Erstellen Sie symbolische Links, Hard Links und Adressen Junctions in Vista mit MKLINK
For Unix-like or Linux system users, symbolic link is a common feature in use almost daily. Für Unix-artigen System-oder Linux-Benutzer, symbolischer Link ist ein gemeinsames Merkmal in Nutzung fast täglich. Symbolic link (aka soft link) or symlink as it often shortened to, is a special type of file or file-system object that serves as a reference or points to another file, UNC or directory, known as target. Symbolischer Link (auch bekannt als Soft-Link) oder Symlink, da sie oft verkürzt, ist eine spezielle Art von Datei-oder File-System-Objekt, dient als Referenz oder Punkte zu einer anderen Datei oder das Verzeichnis UNC, bekannt als Ziel. In Windows Vista, symlinks feature has been added to NTFS filesystem and can be created by using MKLINK command. In Windows Vista, Symlinks Funktion wurde hinzugefügt, um NTFS-Dateisystem und erstellt werden können, indem Sie MKLINK Befehl. In previous Windows operating system, the closer thing to symbolic links is NTFS junction point, or worse, Windows shell shortcut (.lnk) file. In früheren Windows-Betriebssystems, die Sache näher zu symbolischen Links ist NTFS-Knotenpunkt, oder schlimmer noch, Windows-Shell-Verknüpfung (. Lnk-Datei).
Symlink in Vista, unlike .lnk shortcut in desktop or Windows Explorer, allow user to access files within the symbolic link created itself via explorer, the console and etc. And symbolic link also differ from NTFS junction point which can only link to folders and volumes, in which symlinks can point to a file, a UNC, a folder or a volume, as well as able to span file systems. Symlink in Vista, im Gegensatz zu. Lnk Verknüpfung im Desktop oder im Windows-Explorer können Benutzer den Zugriff auf Dateien innerhalb der symbolischen Link erstellt selbst über Entdecker, der Konsole und usw. und symbolischen Link unterscheiden sich auch von NTFS-Knotenpunkt kann nur der Link zum Ordner und Volumes , In denen symbolische Links können auf eine Datei, ein UNC, einen Ordner oder ein Volume, sowie der Lage span Dateisysteme.
Symbolic link is useful when you have a lot of folders and files are scattered all over the directory tree, and you need to manage them from a single location. Symbolischer Link ist nützlich, wenn Sie über eine Menge von Ordnern und Dateien sind über die ganze Verzeichnisbaum, und Sie müssen sich mit ihnen aus einem einzigen Standort. Another scenario is that you have a deep nested file that you want to access quickly instead of traverse through one branch by one branch. Ein weiteres Szenario besteht darin, dass Sie über eine tiefe verschachtelte Datei, die Sie zugreifen möchten schnell anstatt Traverse durch ein Zweig von einem Zweig. And furthermore, for programmer, symlink provides a static file path that can be point to a ever changing object without affecting the functionality of the program. Und darüber hinaus für Programmierer, Symlink bietet eine statische Datei-Pfad, kann auf eine sich ständig wandelnden Objekt ohne dass dies Auswirkungen auf die Funktionalität des Programms. In all these situation, symbolic links can be created at a convenient location which point to the ‘real’ objects. In all diesen Situation, symbolische Links erstellt werden können in einer angenehmen Lage, die auf der "realen" Objekten.
As mentioned, to create a symbolic link, use MKLINK command line tool. Wie bereits erwähnt, um eine symbolische Verbindung, benutzt MKLINK Kommandozeilen-Tool. MKLINK can be used to create a hard link or directory junction too. MKLINK kann verwendet werden, um eine harte Verbindung oder das Verzeichnis Kreuzung zu. Hard link is essentially giving another name or label to the objects, while NTFS directory junction point is used to redirect the whole folder to another folder as if it’s the original folder itself. Hard-Link ist im Wesentlichen mit einem anderen Namen oder Label zu den Objekten, während NTFS-Verzeichnis Knotenpunkt wird benutzt, um den ganzen Ordner in einen anderen Ordner, als ob es das Original-Ordner selbst vermerkt. Junction point is used extensively in Vista to provide support for old directory structures for user profiles (ie Documents and Settings) to point to the new user folders located inside Users directory. Knotenpunkt ist in Vista die Unterstützung für alte Strukturen Verzeichnis für User-Profile (dh Dokumente und Einstellungen) können Sie auf den neuen Benutzer-Ordner befindet sich im Inneren Benutzer-Verzeichnis.
Syntax and Options of MKLINK Syntax und Optionen von MKLINK
MKLINK [[/D] | [/H] | [/J]] Link Target MKLINK [[/ D] | [/ h] | [/ J]] Link Target
/D - Creates a directory symbolic link. / D - Erzeugt ein Verzeichnis symbolischen Link. Default to file symbolic link. Default-Datei zu symbolischen Link.
/H - Creates a hard link instead of a symbolic link. / H - Erzeugt einen harten Link anstatt einen symbolischen Link.
/J - Creates a Directory Junction. / J - Erzeugt ein Verzeichnis Junction.
Link - Specifies the new symbolic link name. Link - Gibt den neuen Namen symbolischen Link.
Target - Specifies the path (relative or absolute) that the new link refers to. Target - Gibt den Pfad (relativ oder absolut), dass der neue Link verweist.
Examples and Usages of MKLINK Beispiele und Nutzungen MKLINK
Note: Only Administrators can use MKLINK to create symbolic links unless override by using secpol.msc, so you need to run Command Prompt with elevated privileges, or else you will get “You do not have sufficient privilege to perform this operation.” error. Hinweis: Nur Administratoren können MKLINK schaffen symbolische Links, es sei denn, überschreiben, indem Sie secpol.msc ein, so müssen Sie die Eingabeaufforderung mit erweiterten Rechten, sonst wird Ihnen "Sie verfügen nicht über ausreichende Berechtigung, um diesen Vorgang." Fehler.
To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe: So erstellen Sie symbolischen Link namens foo zu Bezugnahme auf c: \ Windows \ System32 \ notepad.exe:
C:\test>mklink foo c:\Windows\System32\notepad.exe C: \ test> mklink foo c: \ Windows \ System32 \ notepad.exe
You will see the following result: Sie werden sehen, die folgendes Ergebnis:
symbolic link created for foo <<===>> c:\Windows\System32\notepad.exe symbolischen Link für foo <<===>> c: \ Windows \ System32 \ notepad.exe
If you type dir in commnd prompt, you will see the following listing: Wenn Sie dir in commnd Prompt, sehen Sie die folgende Auflistung:
Volume in drive C has no label. Band im Laufwerk C: hat keine Etikett.
Volume Serial Number is 2211-7428 Band Seriennummer 2211-7428Directory of C:\test Verzeichnis von C: \ test
04/14/2006 11:24 AM <DIR> . 04/14/2006 11:24 AM <DIR>.
04/14/2006 11:24 AM <DIR> .. 04/14/2006 11:24 AM <DIR> ..
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 04/14/2006 11:24 AM <SYMLINK> foo [c: \ Windows \ system32 \ notepad.exe]
1 File(s) 0 bytes 1 Datei (en) 0 Bytes
2 Dir(s) 69,238,722,560 bytes free 2 R (n) 69.238.722.560 Bytes frei
To create symbolic link to a folder, simply use /D switch: So erstellen Sie symbolischer Link zu einem Ordner, nutzen Sie einfach / D-Schalter:
C:\test>mklink /d bar c:\windows C: \ test> mklink / d bar c: \ windows
symbolic link created for bar <<===>> c:\windows symbolischen Link für Bar <<===>> c: \ windows
Results of dir command: Die Ergebnisse der Richt-Befehl:
Volume in drive C has no label. Band im Laufwerk C: hat keine Etikett.
Volume Serial Number is 2211-7428 Band Seriennummer 2211-7428Directory of C:\test Verzeichnis von C: \ test
04/14/2006 11:24 AM <DIR> . 04/14/2006 11:24 AM <DIR>.
04/14/2006 11:24 AM <DIR> .. 04/14/2006 11:24 AM <DIR> ..
04/14/2006 11:24 AM <SYMLINKD> bar [c:\windows] 04/14/2006 11:24 AM <SYMLINKD> bar [c: \ windows]
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 04/14/2006 11:24 AM <SYMLINK> foo [c: \ Windows \ system32 \ notepad.exe]
1 File(s) 0 bytes 1 Datei (en) 0 Bytes
3 Dir(s) 69,238,722,560 bytes free 3 R (s) 69.238.722.560 Bytes frei
MKLINK cannot use to delete symbolic link. MKLINK nicht verwenden können, zu löschen symbolischen Link. To remove a symbolic link, simply delete them as if you’re removing a normal file. So entfernen Sie einen symbolischen Link, einfach löschen, als ob Sie die Streichung eines normalen Datei. For example, to delete the foo symbolic link created above, enter the following command: Zum Beispiel, zu löschen foo symbolischen Link oben erzeugte, geben Sie den folgenden Befehl ein:
C:\test>del foo C: \ test> del foo
To remove the bar symbolic link to a folder created above, use the following command: So entfernen Sie die Bar symbolischer Link auf einen Ordner erstellt, verwenden Sie den folgenden Befehl ein:
C:\test>rd bar C: \ test> rd Bar
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren .
Related Articles Verwandte Artikel
- 10 New Executables and 20 Old Commands in Windows Vista 10 Neue ausführbaren Dateien und 20 Old-Befehle in Windows Vista
- Restore Missing or Deleted Favorite Links Shell Folder Wiederherstellen fehlen oder wurden gelöscht Lieblings-Links Shell-Ordner
- Change Group Ownership of Symbolic Links in Unix or Linux Change Group Eigentum an symbolische Links unter Unix oder Linux
- Technorati Incoming Links Plugin for WordPress Technorati Link-Plugin für WordPress
- Amazon Context Links for Associates Affiliate Program Amazon Kontext Links für Associates Affiliate Program
- View and Retrieve Oracle Database Link Details Anzeigen und abrufen Oracle-Datenbank Link-Details
- How to Add Jump Links in the Email Hinzufügen Wechseln Links in der E-Mail
- Add NoFollow Relationship to WordPress Blogroll to Increase PageRank Fügen Sie nofollow Beziehung zu WordPress Blogroll erhöhen PageRank
- Launch and Open Links in New Window or Tab with _blank or _new as Target in HTML and Their Difference Start-und Open-Links im neuen Fenster oder Tab mit _blank _new oder als Ziel in HTML und ihre Differenz
- How to Avoid, Bypass or Escape Google Sandbox Wie verhindern Sie, Bypass oder Escape Google Sandbox

































June 2nd, 2007 04:22 2. Juni 2007 04:22
[...] Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK » My Digital Life: [...] [...] Symbolische Links an, Hard Links und Adressen Junctions in Vista mit MKLINK »Mein Digital Life: [...]
June 23rd, 2008 09:36 23. Juni 2008 09:36
I cannot figure out how to go to or switch to a symbolic link after it is created. Ich kann nicht herausfinden, wie man an oder wechseln Sie zu einem symbolischen Link, nachdem es erstellt wird. How do you do it? How do you do it? I can’t find instructions for this mentioned anywhere. Ich kann nicht finden Anweisungen für diesen irgendwo erwähnt.
June 25th, 2008 06:32 25. Juni 2008 06:32
Thanks for the post, but I don’t see the point of creating a symlink to a file. Vielen Dank für die Post, aber ich sehe keinen Punkt zu schaffen, ein symbolischer Link auf eine Datei. In your example, you created a symlink called “foo” pointing to notepad.exe, but what can you do to the file “foo”? In Ihrem Beispiel haben Sie einen Symlink namens "foo", die auf notepad.exe, aber was kann man tun, um die Datei "foo"? It’s not executable, even after I rename it to foo.exe. Es ist nicht ausführbar, auch nachdem ich es zu benennen foo.exe.
Thanks. Danke.
July 22nd, 2008 17:39 22. Jul 2008 17:39
you can’t execute symlinks, for that you need to make a shortcut the normal way. Sie können nicht ausgeführt Symlinks, für das man braucht, um eine Verknüpfung auf dem normalen Weg. A symlink is more usefull for ppl to read a certain file wich is in a folder they normaly can’t go to. Ein symbolischer Link ist nützlich für ppl zu lesen, eine bestimmte Datei, die in einem Ordner können sie normalerweise nicht zu gehen. Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time. Oder die gleiche Datei benötigen in 2 verschiedenen Standorten Ordner, aber Sie nicht bearbeiten wollen 2 separate Dateien die ganze Zeit.