Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Maak Symbolic Links, Links en Hard Directory Knooppunten in Vista met MKLINK
For Unix-like or Linux system users, symbolic link is a common feature in use almost daily. Voor Unix-achtig systeem of Linux-gebruikers, de symbolische koppeling is een gemeenschappelijk kenmerk in gebruik bijna dagelijks. 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. Symbolische link (aka soft link) of symlink omdat het vaak afgekort tot, is een speciaal type bestand of bestandssysteem object dat dient als referentie of punten aan een ander bestand, UNC of directory, die bekend staat als doelwit. In Windows Vista, symlinks feature has been added to NTFS filesystem and can be created by using MKLINK command. In Windows Vista, symlinks functie is toegevoegd aan NTFS-bestandssysteem en kunnen worden gemaakt door gebruik te maken van MKLINK commando. In previous Windows operating system, the closer thing to symbolic links is NTFS junction point, or worse, Windows shell shortcut (.lnk) file. In vorige Windows-besturingssysteem, de dichter ding om symbolische links is NTFS kruising punt, of nog erger, Windows-shell snelkoppeling (. Lnk bestand).
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, in tegenstelling tot. Lnk snelkoppeling bureaublad of in Windows Verkenner, kunnen gebruikers toegang krijgen tot bestanden binnen de symbolische koppeling zelf gecreëerd via explorer, de console en enz. En symbolische link verschillen ook van NTFS kruising punt dat kan alleen links naar mappen en volumes , Waarin symlinks kunnen verwijzen naar een bestand, een UNC, een map of volume, evenals kunnen span bestandssystemen.
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. Symbolische link is handig wanneer u veel mappen en bestanden zijn verspreid over het hele directory tree, en die u nodig hebt om ze te beheren vanuit een enkele locatie. 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. Een ander scenario is dat je een diep geneste bestand dat u wilt toegang snel plaats van dwars door middel van een bijkantoor door een bijkantoor. 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. En bovendien is het voor programmeur, symlink biedt een statisch bestand pad dat kan wijzen op een steeds veranderende object zonder dat de functionaliteit van het programma. In all these situation, symbolic links can be created at a convenient location which point to the ‘real’ objects. In al deze situatie, de symbolische koppelingen kunnen worden gemaakt op een handige plek, die wijzen op de 'echte' objecten.
As mentioned, to create a symbolic link, use MKLINK command line tool. Zoals gezegd, om een symbolische koppeling, gebruik MKLINK command-line tool. MKLINK can be used to create a hard link or directory junction too. MKLINK kan worden gebruikt voor het maken van een harde koppeling of een directory kruising ook. 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 is in wezen een andere naam geven of het etiket naar de objecten, terwijl NTFS directory kruising punt wordt gebruikt om een heroriëntatie van de hele map naar een andere map, alsof het de originele map zelf. 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. Junction punt wordt vaak gebruikt in Vista ondersteuning te bieden aan de oude directory structuur van de profielen van de gebruikers (dwz Documents and Settings) om naar de nieuwe gebruiker mappen die zich binnen Gebruikers directory.
Syntax and Options of MKLINK Syntax en Opties van MKLINK
MKLINK [[/D] | [/H] | [/J]] Link Target MKLINK [[/ D] | [/ H] | [/ J]] Link Target
/D - Creates a directory symbolic link. / D - Maakt een directory symbolische link. Default to file symbolic link. Gebrek aan het bestand symbolische link.
/H - Creates a hard link instead of a symbolic link. / H - Maakt een harde koppeling in plaats van een symbolische link.
/J - Creates a Directory Junction. / J - Maakt een Directory Junction.
Link - Specifies the new symbolic link name. Link - Geeft de naam van een nieuwe symbolische koppeling.
Target - Specifies the path (relative or absolute) that the new link refers to. Target - Het pad (relatieve of absolute) die de nieuwe link naar verwijst.
Examples and Usages of MKLINK Voorbeelden en gebruik van 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. Opmerking: Alleen Beheerders kunnen gebruik maken MKLINK symbolische links tenzij overschreven door gebruik te maken van secpol.msc, zodat u moet Command Prompt uitvoeren met verhoogde rechten, anders krijgt u "U beschikt niet over voldoende voorrecht deze bewerking uit te voeren." Error.
To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe: U maakt een symbolische link genaamd foo verwijzingen naar 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: U ziet nu het volgende resultaat:
symbolic link created for foo <<===>> c:\Windows\System32\notepad.exe symbolische link gemaakt voor foo <<===>> c: \ Windows \ System32 \ notepad.exe
If you type dir in commnd prompt, you will see the following listing: Als je typt u dir in commnd prompt ziet u het volgende lijstje:
Volume in drive C has no label. Volume in station C heeft geen label.
Volume Serial Number is 2211-7428 Volume Serial Number is 2211-7428Directory of C:\test Directory of 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 File (s) 0 bytes
2 Dir(s) 69,238,722,560 bytes free 2 Dir (s) 69.238.722.560 bytes vrij
To create symbolic link to a folder, simply use /D switch: U maakt een symbolische link naar een map, gewoon met / O-schakelaar:
C:\test>mklink /d bar c:\windows C: \ test> mklink / d bar c: \ windows
symbolic link created for bar <<===>> c:\windows symbolische link gemaakt voor bar <<===>> c: \ windows
Results of dir command: Resultaten van de opdracht dir:
Volume in drive C has no label. Volume in station C heeft geen label.
Volume Serial Number is 2211-7428 Volume Serial Number is 2211-7428Directory of C:\test Directory of 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 File (s) 0 bytes
3 Dir(s) 69,238,722,560 bytes free 3 Dir (s) 69.238.722.560 bytes vrij
MKLINK cannot use to delete symbolic link. MKLINK niet kunt gebruiken om verwijder symbolische link. To remove a symbolic link, simply delete them as if you’re removing a normal file. Voor het verwijderen van een symbolische link, verwijder je ze alsof je het verwijderen van een normaal bestand is. For example, to delete the foo symbolic link created above, enter the following command: Bijvoorbeeld, voor het verwijderen van het foo symbolische link hierboven aangemaakt, voer het volgende commando:
C:\test>del foo C: \ test> del foo
To remove the bar symbolic link to a folder created above, use the following command: U verwijdert de bar symbolische link naar een map aangemaakt aangehaald, gebruikt u de volgende opdracht:
C:\test>rd bar C: \ test> rd bar
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. BELANGRIJK: Dit is een machine vertaalde pagina die wordt verstrekt "as is" zonder garantie. Machine translation may be difficult to understand. Machine vertaling wellicht moeilijk te begrijpen. Please refer to Raadpleeg original English article origineel Engels artikel whenever possible. als dat mogelijk is.
Share and contribute or get technical support and help at Aandeel en bijdragen of het vinden van technische ondersteuning en hulp bij My Digital Life Forums My Digital Life Forums .
Related Articles Gerelateerde artikelen
- Change Group Ownership of Symbolic Links in Unix or Linux Change Group eigendom van symbolische koppelingen in Unix of Linux
- Vista IE7 Cache & Cookies Folder, Temp Directory and History Location Vista IE7 Cache & Cookies map Temp directory en Geschiedenis Locatie
- 64-bit (x64) Windows Vista Official Direct Download Links 64-bit (x64) Windows Vista Officiële Direct Download Links
- Official Vista SP1 RC Standalone Installer Direct Download Links from Microsoft Server Officiële Vista SP1 RC stand-alone installer Direct Download Links van Microsoft Server
- Automated Installation Kit (AIK) for Windows Server 2008 and Vista SP1 Direct Download Links Automated Installation Kit (AIK) voor Windows Server 2008 en Vista SP1 Direct Download Links
- Hide and Remove Public Folders Shortcuts and Favorite Links in Vista Explorer Shell Verberg en verwijder openbare mappen en snelkoppelingen Favoriete koppelingen in Vista Explorer Shell
- Windows Vista SP1 Standalone Setup Package (x86 and x64) Official Download Links Release (Wave0 5 Languages) Windows Vista SP1 Standalone Setup Package (x86 en x64) Officiële Download Links Release (Wave0 5 talen)
- Install and Create Vista Sidebar in Windows XP Installeer en maak Vista Sidebar in Windows XP
- How to Create a Bootable USB Flash Drive or USB Key with Vista WinPE 2.0 Hoe u een bootable USB flash drive of USB-sleutel met Vista WinPE 2.0
- Create and Setup Your Own Windows Vista KMS Server for Local Self Activation Maak en het opzetten van je eigen Windows Vista KMS-server voor lokaal zelfbestuur activering


























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: [...] [...] Maak Symbolic Links, Links en Hard Directory Knooppunten in Vista met MKLINK »My 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. Ik kan niet hoe te gaan of overschakelen naar een symbolische link nadat deze is gemaakt. How do you do it? Hoe doe je dat? I can’t find instructions for this mentioned anywhere. Ik kan geen instructies vinden voor dit vermeld waar u ook bent.
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. Bedankt voor de post, maar ik zie niet in de plaats van het maken van een snelkoppeling naar een bestand. In your example, you created a symlink called “foo” pointing to notepad.exe, but what can you do to the file “foo”? In jouw voorbeeld moet je een snelkoppeling de naam "foo" wijst naar notepad.exe, maar wat kan je doen om het bestand "foo"? It’s not executable, even after I rename it to foo.exe. Het is niet uitvoerbaar, zelfs nadat ik de naam voor foo.exe hij.
Thanks. Bedankt.
July 22nd, 2008 17:39 22 juli, 2008 17:39
you can’t execute symlinks, for that you need to make a shortcut the normal way. kunt u niet uitvoeren symlinks, voor dat u nodig hebt om een snelkoppeling op de normale manier. A symlink is more usefull for ppl to read a certain file wich is in a folder they normaly can’t go to. Een snelkoppeling is zinvoller voor PPL tot het lezen van een bepaald bestand dat in een map die zij normaliter niet kunnen gaan. Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time. Of hetzelfde bestand nodig is op 2 verschillende locaties bevinden, maar u wilt bewerken dont 2 aparte bestanden de hele tijd.
October 16th, 2008 20:19 16 oktober 2008 20:19
JUNCTION.EXE is a command line tools that allows local symlinks in NTFS volumes under windows XP. JUNCTION.EXE is een command line tools waarmee de lokale symlinks in NTFS-volumes onder windows XP.
October 23rd, 2008 15:17 23 oktober 2008 15:17
Buongiorno,
mi complimento per il tuo lavoro, ma ho da sottoporti un quesito difficilissimo, che se riuscirai a risolvere ti farò una DONAZIONE. mi complimento per il Tuo lavoro, ma ho sottoporti da un quesito difficilissimo, che se riuscirai een risolvere ti Farò una DONAZIONE.
Ho la necessità di fare un LINK SIMBOLICO alla cartella DESKTOP, ma purtroppo dopo averlo fatto non mi sarà più possibile cancellare file o cartelle dal DESKTOP a causa di una limitazione di EXPLORER di WIN XP, mentre il problema è stato risolto in VISTA! Ho la necessità di fare un LINK SIMBOLICO alla cartella DESKTOP, ma purtroppo DoPo averlo FATTO più non mi sara possibile cancellare bestand o cartelle dal DESKTOP een causa di una limitazione di EXPLORER di WIN XP, mentre il problema è stato risolto in VISTA!
Se trovi la soluzione sei un grande ed io compenserò il tuo sforzo per averla trovata. Se trovi la soluzione sei un grande ed io compenserò il Tuo sforzo per averla trovata.
Saluti.
October 23rd, 2008 15:20 23 oktober 2008 15:20
Hello, Hallo,
I congratulate you on your work, but I have to sub a difficult question, that if you manage to resolve you make a DONATION. Ik feliciteer u met uw werk, maar ik heb aan de subsector een moeilijke vraag, dat wanneer u erin slaagt op te lossen maak je een donatie.
I need to make a symbolic link to the DESKTOP folder, but unfortunately after the fact you can not delete files or folders from DESKTOP due to a limitation of EXPLORER WIN XP, but the problem is resolved in VISTA! Ik moet een symbolische koppeling naar de map Bureaublad, maar helaas na het feit dat je niet kunt verwijderen van bestanden of mappen uit DESKTOP als gevolg van een beperking van de EXPLORER WIN XP, maar het probleem is verholpen in VISTA!
If you find the solution you’re a big and I will compensate you for your effort have found. Als u het vinden van de oplossing die u een grote en ik zal compenseren u voor uw inspanning hebben gevonden.
Greetings. Gegroet.
November 8th, 2008 02:45 8 november, 2008 02:45
En el segundo párrafo pone: En El Segundo párrafo pone:
“los enlaces simbólicos pueden apuntar a un archivo, un Mando de las Naciones Unidas, una carpeta o volumen, así como capaz de abarcar los sistemas de archivos.” "Los Enlaces simbólicos pueden apuntar een un archivo, un Mando de las Naciones Unidas, una carpeta o volumen, Así como capaz de abarcar los Sistemas de Archivos."
Pues yo, por mucho que lo intento no consigo apuntar a un Mando de las Naciones Unidas con MKLINK Pues jr., por mucho lo que intento geen consigo apuntar een un Mando de las Naciones Unidas con MKLINK