Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For you command-line users, this there is the blurb (cut-and-pasted) from the Sysinternals about a small wrapper script junction command by Mark Russinovich to make command-line useage more pleasant. This would probably be really useful for our Windows installer area when we get that set up.

Download Junction (16KB)
Download Junction Source (22 KB)

This is the blurb (cut-and-pasted) from the Sysinternals about the junction command.

Panel

Win2K's version of NTFS supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS. Directory symbolic links are known as NTFS junctions in Win2K. Unfortunately, Win2K comes with no tools for creating junctions - you have to purchase the Win2K Resource Kit, which comes the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction. Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Win2K's Remote Storage Service (RSS), as well as volume mount points.

If you want to view reparse information, the usage for Junction is the following:

Wiki Markup
*Usage: junction \[-s\] <directory or file name>*

-s Recurse subdirectories.

If you want to create or delete a junction, use Junction like this:

Wiki Markup
*Usage: junction \[-d\] <junction directory> \[<junction target>\]*

To delete a junction specify the -d switch and the junction name.