Science Fair Projects Ideas - NTFS junction point

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

NTFS junction point

(Redirected from Junction point)

In computing, a NTFS junction point (JP) is a type of NTFS reparse point in the NTFS file system. It requires a NTFS 5.0 file system, which can be created (or converted from a FAT partition) under Windows 2000 and Windows XP. It can be used in a similar way to symbolic links - allowing you to create a link to a folder that is, for most intents and purposes, the same as the folder itself. This has many benefits over a windows shortcut (.lnk) file, such as allowing you to access files within the shortcut via explorer, the console, etc.

Note: junction points link to folders only, if you want to create a similar link with files, use hard links.

Contents

Warning

  • NOTE: Microsoft strongly recommends:
    • Use NTFS ACLs to protect junction points from inadvertent deletion.
    • Use NTFS ACLs to protect files and directories targeted by junction points from inadvertent deletion or other file system operations.
    • Never delete a junction point using Explorer, a del /s command, or other file system utilities that walk recursively into directory trees. These utilities will affect the target directory and all subdirectories. Instead, use the utilities described below to delete junction points.
    • Use caution when applying ACLs or changing file compression in a directory tree that includes NTFS Junction Points.
    • Do not create namespace cycles with NTFS or DFS junction points .
    • Place all your junction points at a secure location in a namespace where you can test them out in safety, and other users will not mistakenly delete them or walk through them.
  • Obscure: There are issues relating to junction points on Win2000 domain controllers & certain Active Directory files. See [1] for more details.

Examples of use

Program redirection

By setting a JP that points to a directory containing a particular version of a piece of software, you can easily add another version of the software and simply redirect the JP to point to the new version (can cause problems with some software, but works with quite a bit - experiment.)

Space saving

If you are running out of space on a drive, you can move those files to a new drive - but this can cause some problems with old links, configuration files, registry, etc. By creating a JP at the previous location (pointing to the new location) windows will treat it the same as if the directory still exists there, but you save HDD space.

Observed effects

WinXP Pro

Explorer

  • Deleting a JP using explorer is not safe - it will delete the targeted files immediately if using shift-delete.
  • Beware: if the JP is sent to the recycle bin, the targeted files will look safe, but will be deleted when the recycle bin is emptied.
  • Moving the JP to a different location on the same drive only moves the JP, however moving to another drive turns the JP into a normal folder and moves all files there (leaving the targeted directory empty).
  • Whilst walking through the directory with explorer, it seems impossible to delete folders, however files can be deleted.
  • A solution for this issues is installing NTFS Link (see external links section), which makes sure that the Explorer handles junctions correctly.

Console

(command prompt - cmd.exe)

  • The console under Windows XP automatically recognizes junction points, displaying <JUNCTION> instead of <DIR> in directory listings.
  • Any commands that would normally affect files inside a normal directory will act the same here, so don't use del myjunction - this will just delete all the files in the targeted folder.
  • rmdir & move seem to work fine with junctions, with the caveat that move wont let you move the junction to another volume (as opposed to Windows explorer, as mentioned above.)
  • rmdir seems safe in that it only deletes the JP, not the targeted files.
  • Whilst walking through the directory with the console, files can be deleted, but unlike explorer, directories can also be deleted (using rmdir /s dirname for example.)

General

  • Interesting tidbit: a hall of mirrors effect can be created by placing a JP in the folder it targets, usefulness of this is ...debatable.** ...

External links

Junction Link Magic - a windows graphical interface for creating, updating and deleting junction points.
Winbolic Link - a windows graphical interface for creating, updating and deleting junction points and shortcuts.
Codeproject Article - a discussion on the source code of a junction point utility. Aimed at programmers.
NTFS-Link - windows shell extension that allows creating junction points and hard links. Existing junction points and hardlinks get marked by a small additional icon in the explorer.
This link is bad, but Google:NTFS-Link will show several sites with it.
Junction - a command line utility & its source code.
PC Mag Article about adding any folder to the start menu (so that you can view the contents as submenus). It links to a program [2] that achieves this using Junction points.
Microsoft Knowledge Base Article - 'How to Create and Manipulate NTFS Junction Points'
Last updated: 05-24-2005 01:35:08
10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice