Solved changing windows folder from default c:\Windows to another location

Evaristo

New member
Local time
9:42 PM
Messages
4
I am thinking about changing the default Windows folder (c:\Windows) to another location, in particular to another drive.

I first thought that it should be possible just by changing the values in the registry for windir and systemroot and making a robocopy of the windows folder to the new location. However, as in order to access these variables in the registry, the hives of the registry, which themselves are located in the system32\config folder within the Windows folder, need to be accessed at startup, I guess that at least the contents of the config folder should not be moved at all. Do you know whether it would work to move the whole "windows" folder except the config folder to the new location (making if necessary a junction config folder at the destination windows\system32 folder pointing to the original config folder) and making the changes in the registry to point to the new location? If not, do you maybe know how can this be done?

Thank you very much in advance!
 

My Computer

OS
Windows 7 Professional x64
Why do you want to do that? The Windows folder (and its contents) is essential for the OS to function correctly, and the OS expects to find it in the root of the system drive (C:\). In theory, it could be moved, but that would involve making numerous changes to the Registry to ensure that the data stored there points to the correct location. As the number of changes required even on a clean install is of the order of 5,000+ entries, some of which will require changes in permissions and other security issues, it really is a non-starter especially when you realise that a simple mistake in changing (or, indeed, failing to change) any one of those keys could potentially leave your system as effective as a big door stop with the only option being a reinstallation.

In short, for practical purposes, the answer has got to be that it cannot be done.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Thanks, Dwarf, for the reply!

I just wanted to move the windows folder to a new SSD for a quicker boot up. I though of doing it this way to first of all avoid a fresh installation from scratch to the SSD and secondly in order to keep the folders or even the registry usually subject to a lot of write operations in the HDD to take good care of the SSD that can only handle a limited number of write operations.

Due to the complexity of the change according to what you are saying, I guess it is easier to make a fresh install to the SSD and use the mklink command to make some junction folders pointing to the HDD for the folders subject to a lot of write operations. If I proceed in this manner, do you know whether there is a way to move the registry to the HDD, so that also the frequent write operations to the registry do not occur in the SSD but instead in the HDD?

Thanks again!
 

My Computer

OS
Windows 7 Professional x64
Evaristo, welcome to the windows 7 forum.

Moving the registry to your other hard disk instead of your SSD would not use the speed of the SSD whenever your OS needed to change the registry.
SSD's are used because they are so fast and the files that the OS needs to read and write make them the device of choice for OS defaults.
Installing programs can be done to other drives than the C so you can preclude filling up your SSD drive.

Rich
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
Thanks, Richnrockville!

I thought the location of the registry in the HDD would not affect substantially the overall speed of the system. I guess it was a wrong supposition... But won't the frequent writes to the registry affect the life of the SSD?


http://www.sevenforums.com/member.php?u=10736
 

My Computer

OS
Windows 7 Professional x64
Evaristo, not really, The spec's on most ssd's are hundreds of thousands of read/writes. Most likely more than the lifetime of your computer or even you <GG>

Rich
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
Thanks, Rich! I will do as you say.
 

My Computer

OS
Windows 7 Professional x64
Back
Top