Jump to content

Change C:\Windows


D8TA

Recommended Posts

After I install Windows XPsp2 I want to change the C:\Windows directory to C:\WINNT is there any utility that will change this? How can I change this directory's name? Thanks in advance. :D

Link to comment
Share on other sites


You could try booting from a floppy (or CD) to get to a command prompt, renaming the directory and editing boot.ini to from something like this:


[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

to something like this:


[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

I can't honestly say I would expect this to work though since any other files that reference the system files (likely the registry) would still be pointing to the old location. I think the best bet, as people have already mentioned, is to change the path name during installation using WINNT.SIF.

Edited by Cartoonite
Link to comment
Share on other sites

i was curious about this..so i tested on my virtual pc.

i edited the boot.ini file while the os was running. (windows to winnt)

and renaming windows to winnt in the recovery console.

this is the message i got trying to boot the os

windows could not start because the following file is missing or corrupt:

<windows root>\system32\hal.dll

Please re-install a copy of the above file.

so if you wannt it to be "winnt" then you need to call that in your winn.sif during install.

Link to comment
Share on other sites

You have to edit the entire registry replacing every instance of C:\Windows with C:\WINNT

The easiest way to do this is export the Entire Registry into a REG file. Open that REG file with a good Text Editor and use the Replace function that will be found in the Edit menu.

After you have made the changes to the REG file and saved it (be sure it is still the Text file format) you can proceed with the changes.

Copy the contents of C:\Windows to a folder called C:\WINNT

Make the other changes recommend here in this Topic

Click the changed REG file to replace the Registry with the replaced values.

Restart the box.

Link to comment
Share on other sites

here is what i've done so far...and this does not work...

changed boot.ini (windows to winnt)

i exported my registry, replaced all "windows" with "winnt"

imported the reg file

got a error message that stated "could not import some keys due to process in use"

rebooted with cd into recovery console

renamed windows to winnt

rebooted

i get the splash screen and thats all....(see attachment)post-58695-1118847489_thumb.jpg

i still do not recommed however you do it..windows to winnt

it needs to be done during the base install of the os

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...