Link to home
Start Free TrialLog in
Avatar of Antonio King
Antonio King

asked on

Force rename of protected folders

Some folders won't allow a rename, can this be overridden in any way?

I understand It could cause massive impacts on the stability of my system, but that isn't an issue in this case.

Be greatful for the help.
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Which folders would this be?  If the files are in use in the folders only way would be to close the files or services or whatever is using the files or do the rename from recovery console, dos boot disc, ntfsdos boot disk, bart pe or whatever outside of the main OS.
Avatar of Antonio King
Antonio King

ASKER

The folder in question is WINDOWS, I would like to rename it Windows.

This would mean it won't inpact system stability.
DOS, try ATTRib to see if you have p turned on.

if so, -p dir name
SOLUTION
Avatar of SamsonChung
SamsonChung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is Windows XP.

I have created an unattended windows setup using sysprep and various 3rd party tools.

I understand I would need to rename it to something else then back.

I would prefer to do this from cmd prompt, during the installation of windows.

Going to try the attrib process.
To rename WINDOWS to Windows a Long File Name support is necesary. So, it is not possible to do it before Windows loads. As, the LFN support is a part of the Windows.

Also, the short name WINDOWS will be always there. But, it is possible to add a longname "Windows" mith a REN command.

I made a try on the Windows 98 OS from a DOS window. And All I had to do was:

REN WINDOWS "Windows"

And It worked.

The DIR command was displaying the WINDOWS folder before the change:
WINDOWS        <DIR>        06.11.11  23:20 WINDOWS
after the change:
WINDOWS        <DIR>        06.11.11  23:20 Windows
It is possible to remove LFN Windows name leaving the short name WINDOWS by:
REN "Windows" WINDOWS
That process simply won't work with Windows XP.
Darn. A windows XP you say. It's a different story, then.

But, you can create a file during the setup, and then to check for it's presence in the process (instead of renaming the WINDOWS) folder.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm a perfectionist thats why... :D

Thats better than "just because I want to" I suppose ;-)
dbrunton:
>>Why not do this from a boot floppy disk or a bootable CDROM drive or even a bootable Linux CDROM that supports NTFS or FAT32?

This is pretty much the only way for you to rename the folder.

I recommend using the Linux distribution (distro for short) Knoppix:
http://www.knopper.net/knoppix/index-en.html

Just burn an image onto a CD-ROM/DVD-ROM (depending on the version) and it can run straight from the CD/DVD without any installation. You should be able to rename the folder from Linux, now that NTFS is supported.
I'm only prepared to do this in an unattended method, ie during the installation of windows.

I would believe that its best to do this from batch but it doesn't seem to work on the windows folder.

thanks to everyone with there input. i'll split the points accordingly.
SysPrep works best when you have Windows installed.

and then package it for imaging. So it will rerun the setup process on next rerun.

Why select a solution that doesn't work BTW?
As it generally does work. But not with the windows folder at the time I'd like to use it