Linking Folders



glenn
07-09-2005, 11:36 PM
In linux you have the ability to move an entire folder to a completely
different hard drive and then create a link in the original folders location
that points to the new drive and path. Programs running on that computer
have no idea this change was made which allows you to move things from one
location to another without having to make any changes to software.

How do you perform this type of function in XP? ie: I have a c:\temp
folder that I store a lot of my test databases in. HOwever, its gotten too
big to fit in c: so I want to move it to d: which is a bigger drive and then
create a link to the d: drive so that all of my applications will continue
to use c:\temp even though nothing is stored there any longer.

I have tried using shortcuts by they only work in the explorer window and
they don't act like folders. You can't even do a start run and choose the
c:\temp shortcut to get to the files in what it points to.

Thanks,

glenn

Malke
07-09-2005, 11:36 PM
glenn wrote:

> In linux you have the ability to move an entire folder to a completely
> different hard drive and then create a link in the original folders
> location
> that points to the new drive and path. Programs running on that
> computer have no idea this change was made which allows you to move
> things from one location to another without having to make any changes
> to software.
>
> How do you perform this type of function in XP? ie: I have a c:\temp
> folder that I store a lot of my test databases in. HOwever, its
> gotten too big to fit in c: so I want to move it to d: which is a
> bigger drive and then create a link to the d: drive so that all of my
> applications will continue to use c:\temp even though nothing is
> stored there any longer.
>
> I have tried using shortcuts by they only work in the explorer window
> and
> they don't act like folders. You can't even do a start run and choose
> the c:\temp shortcut to get to the files in what it points to.
>
> Thanks,
>
> glenn

AFAIK, Windows doesn't have the same hard/soft link ability that *nix
does. I would look in the programs' options to see if you can change
where they look for the databases and just move the files there.

Malke
--
Elephant Boy Computers
www.elephantboycomputers.com
"Don't Panic!"
MS-MVP Windows - Shell/User

Michal Drewniak
07-09-2005, 11:36 PM
The only I can think of is to create a separate partition on some
dynamic disk (this partition will be used to store your temp files), and
mount it to c:\temp

To do this:
1. Go to Computer Management
2. Then to Disk Management
3. Right click on the Volume you want to mount
4. Change drive letter and paths
5. Change
6. Mount in the following empty NTFS folder





glenn wrote:
> In linux you have the ability to move an entire folder to a completely
> different hard drive and then create a link in the original folders location
> that points to the new drive and path. Programs running on that computer
> have no idea this change was made which allows you to move things from one
> location to another without having to make any changes to software.
>
> How do you perform this type of function in XP? ie: I have a c:\temp
> folder that I store a lot of my test databases in. HOwever, its gotten too
> big to fit in c: so I want to move it to d: which is a bigger drive and then
> create a link to the d: drive so that all of my applications will continue
> to use c:\temp even though nothing is stored there any longer.
>
> I have tried using shortcuts by they only work in the explorer window and
> they don't act like folders. You can't even do a start run and choose the
> c:\temp shortcut to get to the files in what it points to.
>
> Thanks,
>
> glenn
>
>

Michal Drewniak
07-09-2005, 11:36 PM
The only I can think of is to create a separate partition and mount it
to c:\temp

To do this:
1. Go to Computer Management
2. Then to Disk Management
3. Right click on the Volume you want to mount
4. Change drive letter and paths
5. Change
6. Mount in the following empty NTFS folder

Malke wrote:
> glenn wrote:
>
>
>>In linux you have the ability to move an entire folder to a completely
>>different hard drive and then create a link in the original folders
>>location
>>that points to the new drive and path. Programs running on that
>>computer have no idea this change was made which allows you to move
>>things from one location to another without having to make any changes
>>to software.
>>
>>How do you perform this type of function in XP? ie: I have a c:\temp
>>folder that I store a lot of my test databases in. HOwever, its
>>gotten too big to fit in c: so I want to move it to d: which is a
>>bigger drive and then create a link to the d: drive so that all of my
>>applications will continue to use c:\temp even though nothing is
>>stored there any longer.
>>
>>I have tried using shortcuts by they only work in the explorer window
>>and
>>they don't act like folders. You can't even do a start run and choose
>>the c:\temp shortcut to get to the files in what it points to.
>>
>>Thanks,
>>
>>glenn
>
>
> AFAIK, Windows doesn't have the same hard/soft link ability that *nix
> does. I would look in the programs' options to see if you can change
> where they look for the databases and just move the files there.
>
> Malke

Tim Slattery
07-09-2005, 11:36 PM
"glenn" <ghancock@softeksoftware.com> wrote:

>In linux you have the ability to move an entire folder to a completely
>different hard drive and then create a link in the original folders location
>that points to the new drive and path. Programs running on that computer
>have no idea this change was made which allows you to move things from one
>location to another without having to make any changes to software.
>
>How do you perform this type of function in XP? ie: I have a c:\temp
>folder that I store a lot of my test databases in. HOwever, its gotten too
>big to fit in c: so I want to move it to d: which is a bigger drive and then
>create a link to the d: drive so that all of my applications will continue
>to use c:\temp even though nothing is stored there any longer.

NTFS can create a symbolic link, similar to the way the UFS (Unix File
System) works. There's nothing in WinXP that lets you do this,
however. But Sysinternals has made a tool available for free to do it.
I'm not positive that this will do what you want, but definitely read
their description and see whether it will work for you:
http://www.sysinternals.com/ntw2k/source/misc.shtml#junction

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov

Keith Miller
07-09-2005, 11:36 PM
In addition to Tim's suggestion, you could try a folder shortcut (not the same as shortcut to a folder)

Create a special "Folder Shortcut" by opening the start menu folder (right-click Start button -> Open), along with the folder containing the folder you want a shortcut to. Right-click & drag the folder to the start menu folder, & when you release the button, choose "create shortcut here."

If you view the properties for this shortcut, you will see it only has one tab & describes itself as "Folder." You can then cut & move this shortcut to wherever you like and it will behave like a "real" folder in Open/Save dialogs.

Keith

"glenn" <ghancock@softeksoftware.com> wrote in message news:%23XHeX8UXFHA.3464@TK2MSFTNGP10.phx.gbl...
> In linux you have the ability to move an entire folder to a completely
> different hard drive and then create a link in the original folders location
> that points to the new drive and path. Programs running on that computer
> have no idea this change was made which allows you to move things from one
> location to another without having to make any changes to software.
>
> How do you perform this type of function in XP? ie: I have a c:\temp
> folder that I store a lot of my test databases in. HOwever, its gotten too
> big to fit in c: so I want to move it to d: which is a bigger drive and then
> create a link to the d: drive so that all of my applications will continue
> to use c:\temp even though nothing is stored there any longer.
>
> I have tried using shortcuts by they only work in the explorer window and
> they don't act like folders. You can't even do a start run and choose the
> c:\temp shortcut to get to the files in what it points to.
>
> Thanks,
>
> glenn
>
>

glenn
07-09-2005, 11:36 PM
Keith

You came the closest. What you explained to do was exactly what I was
looking for and it almost works in all cases exactly like a linux type link
would. However, there are some applications that still refuse to use this
link which means Windows must be screwing something up with what its doing.

For example: I have Borland Delphi loaded and I instruct it to compile my
new exe's into c:\temp. If this happens to be a folder that I link
somewhere else, Delphi refuses to create the new exe there. My database
applications work perfectly using this new drive mapping, but Delphi
refuses, which is very disappointing.

Any more ideas?

glenn

Keith Miller
07-09-2005, 11:37 PM
Junction by SysInternals as recommended by Tim is the only other thing I know of. Did you try it?

Keith

"glenn" <ghancock@softeksoftware.com> wrote in message news:uQSKgmWXFHA.4032@tk2msftngp13.phx.gbl...
> Keith
>
> You came the closest. What you explained to do was exactly what I was
> looking for and it almost works in all cases exactly like a linux type link
> would. However, there are some applications that still refuse to use this
> link which means Windows must be screwing something up with what its doing.
>
> For example: I have Borland Delphi loaded and I instruct it to compile my
> new exe's into c:\temp. If this happens to be a folder that I link
> somewhere else, Delphi refuses to create the new exe there. My database
> applications work perfectly using this new drive mapping, but Delphi
> refuses, which is very disappointing.
>
> Any more ideas?
>
> glenn
>
>


Linking Folders