Solved

Simple folder redirection

Posted on 2004-04-14
2
350 Views
Last Modified: 2008-03-06
I have looked at the previous Q&A for folder redirection, and they all seem much too complicated for what I want to do. Our problem is this: We have a folder on a server containing hundreds of large graphic files, lets call it:
\\kal\e\sam\graphics

We have programs that are configured to see these same graphics in another folder, called:
\\kal\e\pete\graphics

It is not possible to reconfigure the program to look in \sam\graphics, because to do so would mess up other configuration settings. I realize that I could also duplicate all the graphics. This is also not practical, because there are too many, and they are constantly updated. What I want is for any program that is looking for a graphic in \\kal\e\pete\graphics to automatically look instead in \\kal\e\sam\graphics.

How can I do this? Thanks much!
0
Comment
Question by:cascade99
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 10829296
You could simply set a link, or a 'reparse point' in MS speak. See http://www.sysinternals.com/ntw2k/source/misc.shtml#junction and the accompanying program at http://www.sysinternals.com/files/junction.zip

From the page:

Junction
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:

Usage: junction [-s] <directory or file name>

-s      Recurse subdirectories.


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

Usage: junction [-d] <junction directory> [<junction target>]

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

Author Comment

by:cascade99
ID: 10853889
This worked perfectly. Thanks very much! A couple words of advice to the next person trying this:
1. Junction does not seem to accept UNC paths. But that does not seem to matter.
2. The directory you wish to redirect needs to be empty.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Active directory user account audit 4 728
Migrate Windows NT to Windows 2003 2 498
IP Addresses List On Network 8 286
My production physical server goes down, Please help. 11 92
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now