Hello,
In an attempt to optimize my system, I wish to move the folder "Program Files" to another disk. Has anyone got an idea how to inform windows of where that directory is located? Usually it's in C:, but I'll use F: .
Ideas, thoughts welcome.
First, I gave you what you need to alter it permanently/MOST LIKELY, earlier above in that which you quoted from me... as it was first stated which I quote from you now above, & based partially on what Slater was alluding to.
That's simple enough to change or "hardcode" in your registry.
Is it possible to put a shortcut as C:\Program Files and the real one in F:\Program Files ? This is common in unix env.
Not sure what you're asking here, but will give it a go (your UNIX statement clued me in pretty much, & Symbolic/Soft Links & junctions + reparse points on NTFS are the key here)...
Lookup reparse points, junctions (the more likely of the two, vs. the former in reparse points), & Symbolic Links (w/ NTFS in your search term on GOOGLE as well)!
This may help you more on this next point you wish to try to do & NOW state, above!
This may help you in my P.S. (editing): Data about Symbolic Links/SoftLinks, & HOW to do them on NTFS & for folders/directories, which is what you are asking for...
BUT, it needs a reskit tool!
(Thus, why I was "@ a loss" immediately @ least, on HOW to do these in NTFS (as there is no native facility in the OS for it))
HOWEVER, there is ways to implement junctions on NTFS & tools for it, see my P.S. below!
APK
P.S.=> I think this will do it for you:
==============
linkd: Create a Link
Windows 2000 introduces a new filesystem construct known as reparse points in its new version of NTFS. These entities are somewhat similar to Unix symbolic links, although they operate only on directories (folders) and not on individual files. The linkd command may be used to create such a link to a folder or drive, taking the link name and then the target directory as its arguments. For example, the following command creates C:\RK as a link to C:\Program Files\Resource Kit:
C:\> linkd c:\rk "c:\program files\resource kit"
RK looks like this in directory listings:
Volume in drive C is System Volume Serial Number is 40F8-C78D
Directory of C:\
04/09/2001 04:10p <DIR> Documents and Settings
04/09/2001 04:18p <DIR> Program Files
04/12/2001 09:48a <JUNCTION> RK
04/11/2001 04:10p <DIR> temp
04/11/2001 03:34p <DIR> WINNT
0 File(s) 0 bytes
5 Dir(s) 1,459,015,680 bytes free
(A junction is the name given to a reparse point linking to a subdirectory.)
Be aware that you must use the delrp command to remove a reparse point and not the normal del command (which is interpreted as applying to the target in most contexts)
==============
apk