How to link a directory from c: to d:

Jul 18, 2009
30
0
I have added an extra data partition to Windows XP
and would like to have an alias from
c:\Documents and Settings\My Documents
to
d:\Documents and Settings\My Documents


Apparently many programs do not accurately place files
in my new d:\Documents and Settings\My Documents
so I would like to have any program trying to put files in
c:\Documents and Settings\My Documents to have them
automatically transfered to d:.

The reason for this is I'm getting a SSD drive for C: and I want to avoid
programs writing to the C:\ drive.

I use this in Linux to transfer programs in /home/bin
to /usr/local/bin by a soft link to /usr/local/bin and it works perfectly
and also protects my bin files from loss in case of problems with the root partition.

Although I used to use 4NT it's been a long time and I could use some help
in the proper syntax.

Any help would be appreciated.

Larry
 
Jun 2, 2008
38
0
Denmark
The reason for this is I'm getting a SSD drive for C: and I want to avoid programs writing to the C:\ drive.
This is not a solution but more like adding to your problem :-/

You also need to handle the following system environment variables:

APPDATA=C:\Users\username\AppData\Roaming
LOCALAPPDATA=C:\Users\username\AppData\Local
TEMP=C:\Users\username\AppData\Local\Temp
TMP=C:\Users\username\AppData\Local\Temp

and possibly:

USERPROFILE=C:\Users\username

where username is your user name.

Ebbe
 
I could use some help
in the proper syntax
If I was at home I'd be able to give you something more akin to what you're trying to do, because I've just been through the pain of getting Windows 7 to accept the fact that the Users structure should be on the D partition not the C, but from my work laptop the closest I can offer is:

Code:
mklink /j c:\temp d:\temp\

which created a new C:\temp junction pointing to the existing D:\temp\, so I guess something like:

Code:
mklink /j "c:\Documents and Settings\larry\My Documents" "d:\Documents and Settings\larry\My Documents"

would do the trick. I've not found any reason to use a symbolic link rather than a junction in this instance, but if you remove the /j switch then a symbolic link would be created.
 
Jan 19, 2011
604
14
Norman, OK
Right click on your My Documents folder and change the "Target folder location". This will tell XP that you want "My Documents" elsewhere.
 
Similar threads
Thread starter Title Forum Replies Date
nickles How to? Follow a JUNCTION type directory link Support 9
C Add link to ewriter help to program group... Support 3
Joe Caverly CMDebug v23 Help: Link to MOUNTVHD goes to MOUNTISO in UNMOUNTVHD Support 0
Joe Caverly Command Link Buttons Support 4
Joe Caverly TASKDIALOG Help link error Support 1
rps Documentation Advanced directive link to tabcloseprompt & SETP correction Support 0
Joe Caverly TCCRT Download Link Support 1
Joe Caverly How to? Determine size of file via download link Support 13
rps Documentation Regular expression syntax link broken Support 1
vefatica Documentation Help: XML link still broken Support 0
C News link wrong Support 1
M How to? Get both path to and target of symbolic link/junction... Support 2
Dan Glynhampton Documentation Bad link Support 0
Dan Glynhampton Bad link to 64 bit RC1 download Support 0
Dan Glynhampton Documentation v15 help: Missing link Support 0
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
Dan Glynhampton Documentation Bad Link/Missing Page in v15 help Support 0
Stefano Piccardi Issue: MKLINK /J creates invalid link [TCC 14.03.53] Support 4
A MKLNK not deleting symbolic link Support 1
Joe Caverly Documentation What's New Link to Version 13 Support 0
rconn Forums -> Blog link Support 0
M Oldver Link in no longer accessible Support 1
D Bad link on Alias page in Help Support 0
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
D How to? Skip removing directory (RMDIR) without error message Support 2
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2

Similar threads