Discussion Locked

Rename winnt folder

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to rename the winnt folder to something else on an NT4 workstation. How would I do that without reinstalling NT4?

7 replies

by stillatit

In general this is a very bad idea. The reason is that your registry and various .ini files have literally hundreds of pointers to things which were originally installed in \winnt.

If I had to do it, I would try it this way, but no guarantees that it will work:

Export the entire registry to a text file.
Use Wordpad or word to modify all occurances of \winnt to the new name. Save the text file.

Back up your entire disk to tape. Make two separate copies.

Modify the path statement in \autoexec.bat

In the system control panel, in the Environment tab, change \winnt instances to the new directory. In the path variable, ADD the new directory name entries, do not replace the old ones.

Start regedit, and import your modified textfile. Exit regedit when done.

Shut down your system.

Remove the drive from your system and install it as the second drive on another system.

Boot the second system.
On your old drive do the following, making sure your changes ARE on the old drive.
Edit \boot.ini and change any \winnt instances.
Using Word or similar, search the \winnt directory and all of its subdirectories on the old drive for any file containing the string "\winnt" and change the contents of that file to reflect the new directory. There should be a bunch of .ini files.
Rename the \winnt directory.
Shut down the second system.

Re-install the drive in your original system and boot it up.

In the system control panel, in the Environment tab, change or remove any \winnt instances that remain.

Good luck.

by shiltowake

Not many of us have second disks available or the time to be swapping things about, and especially the time to manually configure registries.

If your in the same boat, my suggestion is if you dont have many other applications that will need to be reinstalled as well, then just go ahead and reinstall. Backup the data files first of course but it may be the quickest answer and the best way to make sure there are no conflicts in the future.

This discussion is closed to new replies.