Do You PHP はてブロ

Do You PHPはてなからはてブロに移動しました

Microsoft Junction

Windowsシンボリックリンクを作るツールです。


Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer.

リンクの作成は、次のような感じです。*nixと指定が逆なことに注意。

C:\temp>junction test d:\home\shimooka

Junction v1.04 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2005 Mark Russinovich
Systems Internals - http://www.sysinternals.com

Created: C:\temp\test
Targetted at: d:\home\shimooka

C:\temp>dir test* /ad
 ドライブ C のボリューム ラベルは Win2K です
 ボリューム シリアル番号は AC99-4A67 です

 C:\temp のディレクトリ

2006/12/27  13:29       <JUNCTION>     test
               0 個のファイル                   0 バイト
               1 個のディレクトリ   1,211,977,728 バイトの空き領域

C:\temp>cd test
C:\temp\test>dir *.gif /w
 ドライブ C のボリューム ラベルは Win2K です
 ボリューム シリアル番号は AC99-4A67 です

 C:\temp\test のディレクトリ

member_point_shopping_d.gif
               1 個のファイル               1,963 バイト
               0 個のディレクトリ  14,227,918,848 バイトの空き領域

C:\temp\test>

便利なのは便利ですが、エクスプローラから見ると本当のフォルダと区別が付きません。間違ってフォルダ側を消す人続出の予感。。。