Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same folder on 2 drives 1

Status
Not open for further replies.

cheer8923

Programmer
Aug 7, 2006
230
US
I've heard that it's possible to create symlink in Vista/7.

Under XP, is there any way to do the following:

C:\Photo is where the actual folder resides

I would also want to access it via M:\Photo

There is no drive under the letter M: so I'd have to create one first.

I know one easy way out is use subst to map c: to m:. However, I'd prefer only a few folders show up under m:.

Any way to achieve this?

Thanks!
 
You're on the right track.

Step 1. Create a folder to wherever convenient (in the root of the C: drive maybe) to act as the new drive letter and name it something like driveM. Then use the subst command to substitute it as a drive letter. subst M: c:\driveM

Step 2. Create Junction points in C:\driveM that point to whatever folders you want to see in drive M. The official way to create & modify junction points is using the linkd.exe command but better is to use the Sysinterals Junction utility
 
Worked nicely. Thanks a lot!

Is there any way that I can hide the real path? This way I can almost pretend that the 2 machines have the same drives and paths.

Thanks!
 
I can't think of any way to hide the real (C:\driveM) path, if that's what you're referring to.
 
Ben, mklink is not available in XP. Nor is elevation ;-)
 
This is new to me, I think. I can recall mapping network drives, but this sounds a bit different, and very interesting. One more thing to read up on, try out, I s'ppose. [smile]

--

"If to err is human, then I must be some kind of human!" -Me
 
Won't an NTFS junction point work here? There are some caveats from using them (as in deleting a junction point can erase all of the files where it points, so it's not completely symbolic.) I've used them in the past and as long as you remove the delete permission from the junction point itself it should work in XP. I think the command to create them was linkd, but be careful removing them.
 
We are talking about NTFS junction points, and linkd was discussed earlier in this thread and included a reference to how it is used.
 
Whoops! I see that now. I gotta stop posting at the end of the day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top