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-7428

Directory 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-7428

Directory 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.


10 Responses to “Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK” 10 Responses to "Membuat Symbolic Link, Hard Link dan Direktori Belokan di Vista dengan MKLINK"

  1. GCV GCV
    August 14th, 2009 00:39 14 Agustus 2009 00:39
    10 10

    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.

  2. skattegatte skattegatte
    December 26th, 2008 06:22 26 Desember 2008 06:22
    9 9

    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???

  3. harto Harto
    November 8th, 2008 02:45 8 November 2008 02:45
    8 8

    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

  4. Donato Donato
    October 23rd, 2008 15:20 23 Oktober 2008 15:20
    7 7

    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.

  5. Donato Donato
    October 23rd, 2008 15:17 23 Oktober 2008 15:17
    6 6

    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.

  6. DrLecter DrLecter
    October 16th, 2008 20:19 16 Oktober 2008 20:19
    5 5

    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.

  7. ludo Ludo
    July 22nd, 2008 17:39 22 Juli 2008 17:39
    4 4

    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.

  8. Ed Ed
    June 25th, 2008 06:32 25 Juni 2008 06:32
    3 3

    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.

  9. david david
    June 23rd, 2008 09:36 23 Juni 2008 09:36
    2 2

    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.

  10. The CTRAN weblog » Blog Archive » Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK The CTRAN weblog »Blog Archive» Buat Symbolic Link, Hard Link dan Direktori Belokan di Vista dengan MKLINK
    June 2nd, 2007 04:22 2 Juni 2007 04:22
    1 1

    [...] 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: [...]

Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Anda dapat menggunakan tag ini: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Berlangganan ke fitur komentar telah dinonaktifkan. To receive notification of latest comments posted, subscribe to Untuk menerima pemberitahuan dari komentar terbaru diposting, untuk berlangganan My Digital Life Comments RSS feed My Digital Life Komentar RSS feed or atau register to receive mendaftar untuk menerima new comments in daily email digest. komentar baru di email digest harian.
Custom Search

New Articles Artikel Baru

Incoming Search Terms for the Article Cari Syarat masuk untuk Artikel

mklink mklink - -- mklink windows 7 mklink windows 7 - -- windows 7 mklink windows 7 mklink - -- mklink download mklink download - -- mklink delete mklink menghapus - -- MKLINK SYNTAX MKLINK Sintaks - -- windows 7 hardlink windows 7 hardlink - -- mklink remove mklink menghapus - -- delete mklink menghapus mklink - -- windows directory link direktori jendela link - -- VISTA JUNCTION VISTA JUNCTION - -- vista hard link vista hard link - -- remove mklink menghapus mklink - -- "windows 7" mklink "windows 7" mklink - -- mklink vista mklink vista - -- download mklink download mklink - -- create junction vista membuat persimpangan vista - -- mklink.exe mklink.exe - -- mklink junction mklink persimpangan - -- windows remove symbolic link jendela menghapus symlink - -- hard link vista link keras vista - -- mklink remove link mklink menghapus link - -- junction vista persimpangan vista - -- mklink delete link mklink menghapus link - -- mklink hard link link mklink keras - -- mklink directory junction direktori mklink persimpangan - -- vista hardlink vista hardlink - -- windows vista hard link windows vista hard link - -- mklink sufficient privilege mklink cukup hak istimewa - -- remove symbolic link vista menghapus symlink vista - -- vista create link vista membuat link - -- vista hard links vista hard link - -- mklink remove junction mklink menghapus persimpangan - -- windows 7 hardlinks windows 7 hardlinks - -- remove symbolic link mklink menghapus symlink mklink - -- directory link windows link direktori jendela - -- delete symbolic link windows menghapus symlink jendela - -- hardlink windows 7 hardlink windows 7 - -- vista directory link direktori vista link - -- hard link windows vista link keras windows vista - -- mklink xp download mklink xp download - -- junction mklink persimpangan mklink - -- mklink "windows 7" mklink "windows 7" - -- vista link directory link vista direktori - -- all semua - -- mklink examples mklink contoh - -- vista symbolic link vista symlink - -- windows link directory link jendela direktori - -- directory junction vista persimpangan direktori vista - -- vista junctions vista Persimpangan - --