Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Membuat Symbolic Link, Hard Link dan Direktori Belokan di Vista dengan MKLINK
For Unix-like or Linux system users, symbolic link is a common feature in use almost daily. Untuk mirip Unix atau sistem Linux pengguna, link simbolik fitur yang umum digunakan hampir setiap hari. 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. Symbolic link (alias soft link) atau symlink seperti yang sering disingkat, adalah jenis khusus atau file-file objek sistem yang berfungsi sebagai referensi atau menunjuk ke file lain, UNC atau direktori, yang dikenal sebagai sasaran. In Windows Vista, symlinks feature has been added to NTFS filesystem and can be created by using MKLINK command. Dalam Windows Vista, symlink Fitur ini telah ditambahkan ke filesystem NTFS dan dapat dibuat dengan menggunakan perintah MKLINK. In previous Windows operating system, the closer thing to symbolic links is NTFS junction point, or worse, Windows shell shortcut (.lnk) file. Dalam sistem operasi Windows sebelumnya, hal yang lebih dekat link simbolik NTFS titik persimpangan, atau lebih buruk, Windows shell shortcut (. Lnk) file.
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 di Vista, tidak seperti. Lnk shortcut di desktop atau Windows Explorer, memungkinkan pengguna untuk mengakses file dalam menciptakan symlink itu sendiri melalui explorer, konsol dan sebagainya Dan symlink juga berbeda dari titik persimpangan NTFS yang hanya bisa link ke folder dan volume , di mana dapat symlink menunjuk ke sebuah file, yang UNC, folder atau volume, serta mampu span sistem berkas.
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. Symbolic link ini berguna bila Anda memiliki banyak folder dan file yang tersebar di seluruh pohon direktori, dan Anda perlu untuk mengelola mereka dari satu lokasi. 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. Skenario lain adalah bahwa Anda memiliki bersarang dalam file yang Anda ingin mengakses cepat daripada melintasi melalui satu cabang dengan satu cabang. 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. Dan selanjutnya, untuk programmer, symlink menyediakan path file statis yang dapat menunjuk pada objek yang selalu berubah tanpa mempengaruhi fungsionalitas dari program. In all these situation, symbolic links can be created at a convenient location which point to the 'real' objects. Dalam semua situasi ini, symbolic link dapat dibuat di lokasi yang nyaman yang menunjuk pada 'real' objek.
As mentioned, to create a symbolic link, use MKLINK command line tool. Seperti disebutkan, untuk menciptakan symlink, gunakan alat baris perintah MKLINK. MKLINK can be used to create a hard link or directory junction too. MKLINK dapat digunakan untuk membuat link atau direktori keras persimpangan juga. 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 pada dasarnya adalah memberikan nama lain atau label untuk objek-objek, sedangkan direktori NTFS titik persimpangan digunakan untuk mengarahkan ulang seluruh folder ke folder lain seolah-olah itu folder asli itu sendiri. 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. Titik persimpangan digunakan secara luas di Vista untuk memberikan dukungan bagi struktur direktori tua untuk profil pengguna (yaitu Documents and Settings) untuk menunjuk ke folder pengguna baru Pengguna terletak di dalam direktori.
Syntax and Options of MKLINK Sintaks dan Pilihan dari MKLINK
MKLINK [[/D] | [/H] | [/J]] Link Target MKLINK [[/ D] | [/ H] | [/ j]] Link Target
/D – Creates a directory symbolic link. / D - Membuat sebuah direktori symlink. Default to file symbolic link. Default untuk file symlink.
/H – Creates a hard link instead of a symbolic link. / H - Membuat link keras bukan sebuah symlink.
/J – Creates a Directory Junction. / J - Membuat Direktori Junction.
Link – Specifies the new symbolic link name. Link - Menetapkan nama symlink baru.
Target – Specifies the path (relative or absolute) that the new link refers to. Target - Menetapkan lintasan (relatif atau absolut) bahwa link baru mengacu pada.
Examples and Usages of MKLINK Contoh dan Usages dari 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. Catatan: Hanya Administrator dapat menggunakan MKLINK untuk menciptakan link simbolik kecuali timpa dengan menggunakan secpol.msc, jadi Anda perlu menjalankan Command Prompt dengan peningkatan hak-hak istimewa, atau kalau kamu akan mendapatkan "Anda tidak punya cukup hak istimewa untuk melakukan operasi ini." Kesalahan.
To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe: Menciptakan symlink yang disebut foo untuk referensi ke 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: Anda akan melihat hasil sebagai berikut:
symbolic link created for foo <<===>> c:\Windows\System32\notepad.exe symlink diciptakan untuk foo <<===>> c: \ Windows \ System32 \ Notepad.exe
If you type dir in commnd prompt, you will see the following listing: Jika Anda ketik dir di commnd prompt, Anda akan melihat daftar berikut:
Volume in drive C has no label. Volume di drive C tidak memiliki label.
Volume Serial Number is 2211-7428 Volume Serial Number is 2211-7428Directory of C:\test Direktori 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 <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 free
To create symbolic link to a folder, simply use /D switch: Untuk membuat symlink ke salah satu folder, cukup gunakan / D switch:
C:\test>mklink /d bar c:\windows C: \ test> mklink / d bar c: \ windows
symbolic link created for bar <<===>> c:\windows symlink diciptakan untuk bar <<===>> c: \ windows
Results of dir command: Hasil dari perintah dir:
Volume in drive C has no label. Volume di drive C tidak memiliki label.
Volume Serial Number is 2211-7428 Volume Serial Number is 2211-7428Directory of C:\test Direktori 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 <SYMLINKD> bar [c: \ windows]
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 04/14/2006 11:24 <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 free
MKLINK cannot use to delete symbolic link. MKLINK tidak dapat digunakan untuk menghapus symlink. To remove a symbolic link, simply delete them as if you're removing a normal file. Untuk menghapus symlink, mudah menghapusnya seperti jika Anda menghapus file normal. For example, to delete the foo symbolic link created above, enter the following command: Sebagai contoh, untuk menghapus symlink foo diciptakan di atas, masukkan perintah berikut:
C:\test>del foo C: \ test> del foo
To remove the bar symbolic link to a folder created above, use the following command: Untuk menghapus bar symlink ke folder yang dibuat di atas, gunakan perintah berikut:
C:\test>rd bar C: \ test> rd bar
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- How to Make or Create Symbolic Link in Unix or Linux Cara Membuat atau Buat Symbolic Link di Unix atau Linux
- Change Group Ownership of Symbolic Links in Unix or Linux Mengubah Group Kepemilikan Symbolic Link di Unix atau Linux
- Vista IE7 Cache & Cookies Folder, Temp Directory and History Location Vista IE7 Cache & Cookies Folder, Temp Directory dan Sejarah Lokasi
- Show Current Working Folder or Directory Full Path in Batch Command Script Tampilkan Current Bekerja Folder atau Direktori Kendali Path di Batch Command Script
- Install and Create Vista Sidebar in Windows XP Instal dan Buat Vista Sidebar di Windows XP
- Create and Setup Your Own Windows Vista KMS Server for Local Self Activation Membuat dan Setup Your Own Windows Vista KMS Self Lokal Server untuk aktivasi
- How to Create a Bootable USB Flash Drive or USB Key with Vista WinPE 2.0 Cara Membuat Bootable USB Flash Drive atau USB Key dengan Vista WinPE 2,0
- Create and Put an Elevated Command Prompt on Windows Vista Desktop or Start Menu Membuat dan Peningkatan Letakkan Command Prompt pada Windows Vista Desktop atau Start Menu
- Illustrative Guide to Create Bootable ISO Image from Vista .WIN Image Files Ilustrasi Panduan Membuat Bootable ISO Image dari Windows Vista. WIN Image File
- Create Windows Vista Boot Logo with Generator to Customize Boot Screen Buat Windows Vista Boot Logo dengan Generator untuk Customize Boot Screen










































August 14th, 2009 00:39 14 Agustus 2009 00:39
Why do you need to be an administrator to use this feature? Mengapa Anda perlu menjadi administrator untuk menggunakan fitur ini? I sometimes think that every developer in Redmond should have Windows taken away for a year so they can learn some other viewpoint other than their own. Kadang-kadang aku berpikir bahwa setiap pengembang di Redmond harus memiliki Windows dibawa pergi selama satu tahun, sehingga mereka dapat belajar beberapa sudut pandang lain selain mereka sendiri. Understanding how useful symlinks are in general usage would be quite enlightening to them. Memahami bagaimana symlink berguna dalam penggunaan umum akan cukup mencerahkan kepada mereka.
December 26th, 2008 06:22 26 Desember 2008 06:22
aooooooooo!!!!! aooooooooo !!!!! ma se po' sape' ando azzo stai ??? ma se po 'sape' ando azzo stai??? w l'itlia anfammmmmmiiiiiiii …….FIGLIO DI TROTA ..MAN: YOU SKI LITTLE ?…. w l'itlia anfammmmmmiiiiiiii ... .... TROTA .. FIGLIO DI MAN: ANDA SKI SEDIKIT? ....
STUPID MAN : YES STUPID MAN: YA
MUAAAAAAAAAA AHAHAHAHHAH TE TO LI FKOE SOE WER BHSY IN TO KIE WS CAIID …STPIK EAD IN BOTLAE ANSOWIMA———))))STUPID ARE YOU ??? UNTUK MUAAAAAAAAAA LI TE AHAHAHAHHAH BUMN FKOE Wer BHSY DALAM UNTUK KIE WS CAIID ... STPIK EAD DI BOTLAE ANSOWIMA ---)))) STUPID ARE YOU???
November 8th, 2008 02:45 8 November 2008 02:45
En el segundo párrafo pone: En el segundo párrafo roti manis:
“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 a 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 yo, por mucho que lo intento no consigo a un apuntar Mando de las Naciones Unidas con MKLINK
October 23rd, 2008 15:20 23 Oktober 2008 15:20
Hello, Halo,
I congratulate you on your work, but I have to sub a difficult question, that if you manage to resolve you make a DONATION. Saya ucapkan selamat atas pekerjaan Anda, tapi aku harus sub pertanyaan yang sulit, bahwa jika Anda berhasil menyelesaikan Anda membuat SUMBANGAN.
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! Aku harus membuat simbolik link ke folder DESKTOP, tapi sayangnya setelah fakta Anda tidak dapat menghapus file atau folder dari DESKTOP karena keterbatasan EXPLORER WIN XP, tetapi masalah ini diatasi di VISTA!
If you find the solution you're a big and I will compensate you for your effort have found. Jika Anda menemukan solusi yang Anda sudah besar dan aku akan kompensasi atas usaha anda telah ditemukan.
Greetings. Salam.
October 23rd, 2008 15:17 23 Oktober 2008 15:17
Buongiorno, 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 un sottoporti da quesito difficilissimo, che se ti riuscirai Faro a risolvere 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 dal file o cartelle DESKTOP a causa di una limitazione di PENJELAJAH di WIN XP, Mentre il masalah Stato è risolto di VISTA!
Se trovi la soluzione sei un grande ed io compenserò il tuo sforzo per averla trovata. Soluzione la trovi se sei un grande compenserò ed io il tuo sforzo per averla trovata.
Saluti. Saluti.
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 adalah tool baris perintah yang memungkinkan symlink lokal di NTFS volume di bawah windows XP.
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. Anda tidak dapat menjalankan symlink, untuk itu Anda perlu membuat jalan pintas dengan cara biasa. A symlink is more usefull for ppl to read a certain file wich is in a folder they normaly can't go to. A symlink lebih berguna bagi ppl untuk membaca file tertentu yang berada dalam folder normaly mereka tidak bisa pergi ke. Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time. Atau file yang sama diperlukan di 2 folder berbeda lokasi, namun tidak Anda inginkan untuk mengedit 2 file terpisah setiap waktu.
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. Thanks for the posting, tapi saya tidak melihat titik menciptakan symlink ke file. In your example, you created a symlink called “foo” pointing to notepad.exe, but what can you do to the file “foo”? Dalam contoh Anda, Anda buat sebuah symlink disebut "foo" menunjuk kepada Notepad.exe, tapi apa yang bisa Anda lakukan untuk file "foo"? It's not executable, even after I rename it to foo.exe. Ini bukan executable, bahkan setelah saya mengganti nama untuk foo.exe.
Thanks. Terima kasih.
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. Aku tidak bisa mencari cara untuk pergi ke atau beralih ke symlink setelah dibuat. How do you do it? Bagaimana Anda melakukannya? I can't find instructions for this mentioned anywhere. Saya tidak bisa menemukan petunjuk untuk ini disebutkan di mana saja.
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: [...] [...] Membuat Link Simbolik, Hard Link dan Direktori Belokan di Vista dengan MKLINK »My Digital Life: [...]