Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Force rename of protected folders

Posted on 2006-11-15
19
Medium Priority
?
8,419 Views
Last Modified: 2008-01-09
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.
0
Comment
Question by:Antonio King
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 3
  • +4
19 Comments
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17947239
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.
0
 

Author Comment

by:Antonio King
ID: 17947585
The folder in question is WINDOWS, I would like to rename it Windows.

This would mean it won't inpact system stability.
0
 
LVL 6

Expert Comment

by:SamsonChung
ID: 17950230
DOS, try ATTRib to see if you have p turned on.

if so, -p dir name
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 6

Assisted Solution

by:SamsonChung
SamsonChung earned 400 total points
ID: 17950237
Also,

Windows, in dos 3 to 7, is displayed as WINDOWS

so even if you try it, it is still WINDOWS
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 800 total points
ID: 17950395
You would probably need to change it t something else then back to windows in the proper case or try it from a cmd prompt ... or DOS before windows loads etc. is this windows 3,1,95,98,ME,NT,2000, XP???

0
 
LVL 4

Accepted Solution

by:
Stephen McTigue earned 400 total points
ID: 17951595
do this in the directory where the folder or file you want to rename is:

attrib -r (name of file or folder)
ren (name of file or folder) (what you want to be renamed)
attrib +r (name of file or folder)



attrib +r is optional, but if you want it to be read-only again, you need to.
0
 
LVL 49

Assisted Solution

by:dbrunton
dbrunton earned 400 total points
ID: 17953576
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?
0
 

Author Comment

by:Antonio King
ID: 17954186
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.
0
 
LVL 10

Expert Comment

by:For-Soft
ID: 17954191
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
0
 

Author Comment

by:Antonio King
ID: 17954204
That process simply won't work with Windows XP.
0
 
LVL 10

Expert Comment

by:For-Soft
ID: 17954215
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.
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 800 total points
ID: 17954380
I suppose BART PE would be the easiest answer then.  Is this an image - PQI, Ghost etc. in which case could you use Ghost Walker or whatever it is called to edit it within the GHO file.

I suppose I *could* ask why ...

Steve
0
 

Author Comment

by:Antonio King
ID: 17954425
I'm a perfectionist thats why... :D

0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17954501
Thats better than "just because I want to" I suppose ;-)
0
 
LVL 4

Expert Comment

by:Caudax
ID: 17979360
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.
0
 

Author Comment

by:Antonio King
ID: 17979862
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.
0
 
LVL 6

Expert Comment

by:SamsonChung
ID: 17979904
SysPrep works best when you have Windows installed.

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

0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17980014
Why select a solution that doesn't work BTW?
0
 

Author Comment

by:Antonio King
ID: 17980033
As it generally does work. But not with the windows folder at the time I'd like to use it
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question