Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINKシンボリックリンクを、ハードリンクとディレクトリジャンクションでVistaにmklink

For Unix-like or Linux system users, symbolic link is a common feature in use almost daily.またはLinuxをUNIXライクなシステムのユーザは、シンボリックリンクはほぼ毎日、共通の機能を使用します。 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.シンボリックリンク( akaのソフトリンク) 、またはシンボリックリンクを短縮することもしばしばとしては、特別な種類のファイルまたはファイルシステムとして利用されてオブジェクトの参照やポイントを別のファイルまたはディレクトリのUNC 、ターゲットとして知られています。 In Windows Vista, symlinks feature has been added to NTFS filesystem and can be created by using MKLINK command. Windows Vistaでは、シンボリックリンクをNTFSに変換する機能が追加されてファイルシステムを使用して作成さmklinkできるコマンドを実行します。 In previous Windows operating system, the closer thing to symbolic links is NTFS junction point, or worse, Windows shell shortcut (.lnk) file.は、以前のWindowsオペレーティングシステムでは、緊密なことをシンボリックリンクはNTFS接合点、あるいはさらに悪いことに、 Windowsシェルのショートカット( 。 lnk )ファイルです。

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.ビスタへのシンボリックリンクを、とは違っています。 lnkデスクトップのショートカットが作成さまたはエクスプローラで、ユーザーのファイルにアクセスできるように作成自体のシンボリックリンク経由でエクスプローラで、コンソールとのシンボリックリンクなどもNTFS接合点が異なるだけのリンクをフォルダや巻号、そのファイルへのシンボリックリンクをポイントしては、 UNCのは、フォルダまたはボリュームだけでなく、ファイルシステムをスパンできるようにします。

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.シンボリックリンクは有用なときには、たくさんのフォルダやファイルは、ディレクトリツリー上全体に散在し、それらを管理するために、 1つの場所からです。 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.別のシナリオではいる場合は、深くネストされたファイルを迅速にしたいの代わりにトラバースへのアクセスを1つのブランチを1つのブランチを介しています。 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.とまた、プログラマー、シンボリックリンクでは、静的なファイルのパスことができるオブジェクトをポイントして、絶えず変化するプログラムの機能に影響を与えずにします。 In all these situation, symbolic links can be created at a convenient location which point to the ‘real’ objects.すべてのこのような状況では、シンボリックリンクを作成できる便利なロケーションを指しているの'本当の'オブジェクトです。

As mentioned, to create a symbolic link, use MKLINK command line tool.前述のように、シンボリックリンクを作成するには、 mklinkコマンドラインツールを使用します。 MKLINK can be used to create a hard link or directory junction too. mklinkを使用してハードリンクまたはディレクトリを作成するジャンクションが判明しました。 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.ハードリンクは基本的に別の名前やラベルを提供するオブジェクト、 NTFSディレクトリジャンクションポイントを使用してフォルダ全体を別のフォルダにリダイレクトすることであるかのように、元のフォルダに自分自身です。 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.ジャンクションポイントが広範囲に使用されるVistaの古いディレクトリ構造を提供するためのサポートをユーザープロファイル(すなわちドキュメントと設定)をポイントするようにすると、新しいユーザーフォルダ内のユーザーディレクトリにコピーします。

Syntax and Options of MKLINK 構文とオプションのmklink

MKLINK [[/D] | [/H] | [/J]] Link Target mklink [ [ /直】 | [ /時] | [ / Jの] ]リンク先

/D - Creates a directory symbolic link. /開発、新技術-ディレクトリを作成するシンボリックリンクをクリックします。 Default to file symbolic link.デフォルトのファイルのシンボリックリンクをクリックします。
/H - Creates a hard link instead of a symbolic link. /時-ハードリンクを作成する代わりに、シンボリックリンクをクリックします。
/J - Creates a Directory Junction. / Jの-ディレクトリを作成するジャンクションです。
Link - Specifies the new symbolic link name.リンク-新しいシンボリックリンクの名前を指定します。
Target - Specifies the path (relative or absolute) that the new link refers to.ターゲット-パスを指定します(相対または絶対)は、新しいリンクを参照してください。

Examples and Usages of MKLINK 用途の例と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.注:管理者のみ使用することをオーバーライドしない限り、 mklinkシンボリックリンクを作成するsecpol.mscを使用して、コマンドプロンプトを実行するために必要な特権の昇格するか、さもなくを得る"必要はありませんこの操作を実行するのに十分な権限だ"エラーが発生します。

To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe:シンボリックリンクを作成すると呼ばれるfooを参照形をc : \ Windows \ System32を\メモ帳:

C:\test>mklink foo 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 Fooのシンボリックリンクを作成<<===>> c : \ Windows \ System32を\ Notepad.exeの

If you type dir in commnd prompt, you will see the following listing: commndディレクトリを入力した場合、プロンプトで、あなたは、詳細については、次のリスティング:

Volume in drive C has no label. Cドライブのボリュームラベルはありません。
Volume Serial Number is 2211-7428ボリュームのシリアル番号は2211-7428

Directory of C:\testディレクトリのC : \テスト

04/14/2006 11:24 AM <DIR> . 2006年4月14日11:24 AMの<dir>です。
04/14/2006 11:24 AM <DIR> .. 2006年4月14日11:24 AMの<dir> ..
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 2006年4月14日11:24 AMの<symlink> foo [ C言語: \ Windows \ System32を\メモ帳]
1 File(s) 0 bytes 1ファイル(複数可) 0バイト
2 Dir(s) 69,238,722,560 bytes free 2ディレクトリ(劇団) 69,238,722,560バイトの空き

To create symbolic link to a folder, simply use /D switch:シンボリックリンクしてフォルダを作成し、単に使用/ dスイッチ:

C:\test>mklink /d bar c:\windows C : \ Testに> mklink / dバーc : \ Windowsの
symbolic link created for bar <<===>> c:\windowsシンボリックリンクバーに作成さ<<===>> c : \ Windowsの

Results of dir command:の結果をdirコマンド:

Volume in drive C has no label. Cドライブのボリュームラベルはありません。
Volume Serial Number is 2211-7428ボリュームのシリアル番号は2211-7428

Directory of C:\testディレクトリのC : \テスト

04/14/2006 11:24 AM <DIR> . 2006年4月14日11:24 AMの<dir>です。
04/14/2006 11:24 AM <DIR> .. 2006年4月14日11:24 AMの<dir> ..
04/14/2006 11:24 AM <SYMLINKD> bar [c:\windows] 2006年4月14日11:24 AMの<symlinkd>バー[ C言語: \ Windows 】
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 2006年4月14日11:24 AMの<symlink> foo [ C言語: \ Windows \ System32を\メモ帳]
1 File(s) 0 bytes 1ファイル(複数可) 0バイト
3 Dir(s) 69,238,722,560 bytes free 3ディレクトリ(劇団) 69,238,722,560バイトの空き

MKLINK cannot use to delete symbolic link. mklinkシンボリックリンクを削除し使用することはできません。 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:たとえば、作成したシンボリックリンクを削除すると、 fooの上、以下のコマンドを入力します:

C:\test>del foo C : \ Testに>デルfoo

To remove the bar symbolic link to a folder created above, use the following command:バーのシンボリックリンクを削除するにフォルダを作成して上記のは、次のコマンドを使用して:

C:\test>rd bar C : \ Testに>路バー

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” 4つの応答を"シンボリックリンクを、ハードリンクとディレクトリジャンクションでVistaにmklink "

  1. The CTRAN weblog » Blog Archive » Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINKウェブログのctran »ブログのアーカイブ»シンボリックリンクを、ハードリンクとディレクトリジャンクションでVistaにmklink
    June 2nd, 2007 04:22 2007年6月2日04:22
    1

    [...] Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK » My Digital Life: [...] [...]シンボリックリンクを、ハードリンクとディレクトリジャンクションでVistaにmklink »私のデジタルライフ: [...]

  2. davidデビッド
    June 23rd, 2008 09:36 2008年6月23日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 2008年6月25日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”?にあなたの例では、シンボリックリンクを作成すると呼ばれる" foo "というメモ帳を指して、しかし、何ができるのをファイルに" foo "ですか? It’s not executable, even after I rename it to foo.exe.それは実行可能ファイルは、私の名前を変更した後でそれをfoo.exeです。

    Thanks.ありがとう。

  4. ludoルードー
    July 22nd, 2008 17:39 2008年7月22日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.へのシンボリックリンクは、他のお役にたちましたpplのを読んだのは、特定のファイル、フォルダ内にはnormalyに行くことができません。 Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time.または、同じファイルの2つのフォルダの場所は、必要に応じて、でも2つの独立したファイルを編集するdontしたいのすべての時間です。

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> これらのタグを使用することができます: <aのhref=のtitle= <abbrのtitle= <blockquote cite=""> <cite> <acronymのtitle= <b>ダウンロードの<code> <デル日時= " " >の<em> <i>て<strike> <strong> <q cite="">

Subscribe without commenting登録なしのコメント


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article検索用語を受信するには

mklink mklink - - vista hard link Vistaのハードリンク - - mklink vista mklinkビスタ - - mklink download mklinkダウンロード - - vista hard links Vistaのハードリンク - - download mklink ダウンロードmklink - - vista create junction Vistaの作成ジャンクション - - vista mklink ビスタmklink - - vista create link Vistaのリンクを作成 - - vista Hardlink ビスタhardlink - - hard link vista ハードリンクビスタ - - vista junctions Vistaのジャンクション - - mklink remove mklink削除 - - remove symbolic link vista Vistaのシンボリックリンクを削除 - - create link vista Vistaのリンクを作成 - - vista directory link Vistaのディレクトリへのリンク - - mklink syntax mklink構文 - - remove symbolic link シンボリックリンクを削除 - - create junction vista ジャンクションVistaの作成 - - delete mklink 削除mklink - - hard links vista ハードリンクビスタ - - windows vista hard links Windows Vistaのハードリンク - - vista create hard link Vistaのハードリンクを作成 - - mklink junction mklinkジャンクション - - mklink hard link mklinkハードリンク - - remove mklink 削除mklink - - mklink delete mklink削除 - - windows vista hard link Windows Vistaのハードリンク - - create hard link vista Vistaのハードリンクを作成 - - vista make link ビスタにリンク - - how to use mklink mklinkを使用する方法 - - MKLINK mklink - - all すべての - - vista junction create ビスタジャンクション作成 - - create symbolic link vista Vistaのシンボリックリンクを作成 - - mklink you do not have sufficient privilege to perform this operation mklinkする必要はありません。この操作を実行するに十分な権限 - - mklink windows xp Windows XPのmklink - - vista remove symbolic link Vistaのシンボリックリンクを削除 - - mklink privileges mklink権限 - - vista directory links Vistaのディレクトリにリンク - - delete junction vista ジャンクションVistaの削除 - - symbolic link Vista シンボリックリンクビスタ - - vista delete symbolic link Vistaのシンボリックリンクを削除 - - remove symlink vista ビスタへのシンボリックリンクを削除 - - link folder vista リンクフォルダビスタ - - symbolic link windows Windowsのシンボリックリンク - - create ntfs junction vista NTFS接合Vistaの作成 - - vista mklink privileges ビスタmklink権限 - - hard link directory ハードリンクディレクトリ - - hard link windows vista Windows Vistaのハードリンク - -