خلقت خطوات رمزيّة, يستعصي خطوات ودليل ملتقيات في [فيستا] مع [مكلينك]

ل [أونيإكس-ليك] أو [لينوإكس] نظامة مستعملات, خطوة رمزيّة سمة عاديّة [إين وس] تقريبا يوميّة. خطوة رمزيّة ([أكا] خطوة ليّنة) أو [سملينك] ك هو غالبا يوجز إلى, نوع خاصّة من مبرد أو [فيل-سستم] شيء أنّ يخدم كمرجع أو نقطات إلى آخر مبرد, [أونك] أو دليل, يعرف كهدف. في [ويندووس] [فيستا], [سملينكس] أضفت سمة يتلقّى يكون إلى [نتفس] [فيلسستم] ويستطيع كنت خلقت ب يستعمل [مكلينك] أمر. في سابقة [ويندووس] [أبرت سستم], الشيء قريبة إلى خطوات رمزيّة [نتفس] ملتقى نقطة, أو مريضة, [ويندووس] قشرة قذيفة طريق مختصر ([.لنك]) مبرد.

يسمح [سملينك] في [فيستا], بخلاف [.لنك] طريق مختصر في مكتب أو [ويندووس] رجل التّنقيب, مستعملة أن ينفذ مبارد ضمن الخطوة رمزيّة خلقبنفسي عن طريق رجل التّنقيب, الوحدة طرفيّة للتحكّم و [إتك.]. ويختلف خطوة رمزيّة أيضا من [نتفس] ملتقى نقطة أيّ يستطيع فقط اقترنت إلى ملفات وحجوم, في أيّ [سملينكس] يستطيع دللت إلى مبرد, [أونك], ملف أو حجم, [أس ولّ س] يمكن أن يجسر [فيل سستم].

خطوة رمزيّة مفيدة عندما يتلقّى أنت [ا لوت] الملفات ومبارد تناثرت [ألّ وفر] الدليل شجرة, وأنت تحتاج أن يديرهم من موقعة وحيد. آخر سيناريو أنّ يتلقّى أنت عميقة يعشّق مبرد أنّ أنت تريد أن ينفذ سريعا [إينستد وف] عارضة من خلال واحدة فرع بواحدة فرع. وعلاوة على ذلك, لمبرمجة, يزوّد [سملينك] ساكن إستاتيكي مبرد ممر أنّ يستطيع كنت نقطة إلى في أيّ وقت يغيّر شيء دون يأثر ال [فونكأيشنليتي] من البرنامج. في كلّ هذا حالة, خطوات رمزيّة يستطيع كنت خلقت في موقعة ملائمة أيّ يدلّ إلى ال `حقيقيّة' أشياء.

بما أنّ يذكر, أن يخلق خطوة رمزيّة, إستعمال [مكلينك] [كمّند لين] أداة. [مكلينك] يستطيع كنت استعملت أن يخلق يستعصي خطوة أو دليل ملتقى أيضا. يستعصي يعطي خطوة أساسا آخر اسم أو علامة مميّزة إلى الأشياء, بينما [نتفس] دليل ملتقى نقطة يكون استعملت أن يعيد الملف كاملة إلى آخر ملف [أس يف] هو الملف أصليّة بنفسي. ملتقى استعملت نقطة بشكل واسع في [فيستا] أن يزوّد دعم لقديمة دليل بنى ل [أوسر بروفيل] ([إي.] وثائق وعمليّة إعداد) إلى نقطة إلى الجديدة مستعملة ملفات يحدّ [أوسر ديركتوري] داخليّة.

إعراب وخيارات ال [مكلينك]

[مكلينك] [[[/د]] | [[/ه]] | [[/ج]]] خطوة هدف

يخلق /D - دليل خطوة رمزيّة. تقصير أن يصنّف خطوة رمزيّة.
يخلق /H - يستعصي خطوة [إينستد وف] خطوة رمزيّة.
يخلق /J - دليل ملتقى.
يعيّن خطوة - ال [لينك نم] جديدة رمزيّة.
Target - Specifies the path (relative or absolute) that the new link refers to.

Examples and Usages of 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.

To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe:

C:\test>mklink foo c:\Windows\System32\notepad.exe

You will see the following result:

symbolic link created for foo <<===>> c:\Windows\System32\notepad.exe

If you type dir in commnd prompt, you will see the following listing:

Volume in drive C has no label.
Volume Serial Number is 2211-7428

Directory of C:\test

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]
1 File(s) 0 bytes
2 Dir(s) 69,238,722,560 bytes free

To create symbolic link to a folder, simply use /D switch:

C:\test>mklink /d bar c:\windows
symbolic link created for bar <<===>> c:\windows

Results of dir command:

Volume in drive C has no label.
Volume Serial Number is 2211-7428

Directory of C:\test

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 <SYMLINK> foo [c:\Windows\system32\notepad.exe]
1 File(s) 0 bytes
3 Dir(s) 69,238,722,560 bytes free

MKLINK cannot use to delete symbolic link. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

C:\test>del foo

To remove the bar symbolic link to a folder created above, use the following command:

C:\test>rd bar

IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.

Share and contribute or get technical support and help at My Digital Life Forums.



4 Responses to “Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK”

  1. The CTRAN weblog » Blog Archive » Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK
    June 2nd, 2007 04:22
    1

    [...] Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK » My Digital Life: [...]

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

    I cannot figure out how to go to or switch to a symbolic link after it is created. How do you do it? I can’t find instructions for this mentioned anywhere.

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

    Thanks for the post, but I don’t see the point of creating a symlink to a file. In your example, you created a symlink called “foo” pointing to notepad.exe, but what can you do to the file “foo”? It’s not executable, even after I rename it to foo.exe.

    Thanks.

  4. ludo
    July 22nd, 2008 17:39
    4

    you can’t execute symlinks, for that you need to make a shortcut the normal way. A symlink is more usefull for ppl to read a certain file wich is in a folder they normaly can’t go to. Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time.

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>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

mklink - vista hard link - mklink vista - mklink download - vista hard links - vista create junction - vista Hardlink - download mklink - vista mklink - vista create link - hard link vista - vista junctions - vista directory link - mklink remove - remove symbolic link - remove symbolic link vista - mklink junction - create link vista - hard links vista - mklink syntax - vista create hard link - create junction vista - remove mklink - windows vista hard links - delete mklink - mklink hard link - MKLINK - vista make link - create hard link vista - all - create symbolic link vista - vista remove symbolic link - windows vista hard link - mklink you do not have sufficient privilege to perform this operation - mklink windows xp - how to use mklink - mklink delete - mklink privileges - link folder vista - vista directory links - create ntfs junction vista - delete junction vista - vista mklink privileges - hard link directory - hard link windows vista - symbolic link Vista - vista junction create - vista mklink remove - vista delete symbolic link - junction mklink -