Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

User Tag List

Cannot unset read only in safe mode

This is a discussion on Cannot unset read only in safe mode within the Windows XP Support forums, part of the Tech Support Forum category. ALL files & folders are set as read-only. I have ownership & have followed Microsoft support instructions to unset read


Closed Thread
 
Thread Tools Search this Thread
Old 04-26-2009, 05:34 AM   #1
Guest
 
Join Date: May 2008
Posts: 29
OS:



ALL files & folders are set as read-only. I have ownership & have followed Microsoft support instructions to unset read only. When I finish resetting the folder/file, read only is checked again. It will not change no matter what I do. I have run Malwarebytes, RegCure, virus software is up to date. Thanks to anyone for some ideas as to what may be happening!
gigiwhite1 is offline  
Sponsored Links
Advertisement
 
Old 04-26-2009, 06:04 AM   #2
CCT
Helper
 
CCT's Avatar
 
Join Date: Mar 2009
Posts: 4,126
OS: abacus



Have you been through this article?

https://support.microsoft.com/default...b;en-us;326549

edit: btw, Kellys Korner line 135 has a utility for this;

https://www.kellys-korner-xp.com/xp_tweaks.htm
CCT is offline  
Old 04-26-2009, 08:04 AM   #3
Guest
 
Join Date: May 2008
Posts: 29
OS:



Yes. When I type in the command "attrib \?", I get "attrib \? is not recognized as an internal or external command, operable program or batch file".
gigiwhite1 is offline  
Sponsored Links
Advertisement
 
Old 04-26-2009, 08:09 AM   #4
CCT
Helper
 
CCT's Avatar
 
Join Date: Mar 2009
Posts: 4,126
OS: abacus



That's attrib /?, NOT \?
CCT is offline  
Old 04-27-2009, 08:39 AM   #5
Guest
 
Join Date: May 2008
Posts: 29
OS:



I have tried "attrib -r C:\Documents and Settings\My Music" for example, and I get "Parameter format not correct". What am I typing wrong?
gigiwhite1 is offline  
Old 04-27-2009, 09:05 AM   #6
CCT
Helper
 
CCT's Avatar
 
Join Date: Mar 2009
Posts: 4,126
OS: abacus



Try this:

Click start, click run, type cmd /k and press enter.

type: cd C:\Documents and Settings\(your user name)\My Documents\My Music\ and press enter

type attrib -R *.* (or file name) and press enter

edit: the paths above are like mine - if yours vary then adjust the text
CCT is offline  
Old 04-27-2009, 10:25 AM   #7
Guest
 
Join Date: May 2008
Posts: 29
OS:



I get "the system cannot find the path specified" when I type the first part so I never get to put in "attrib -R"
gigiwhite1 is offline  
Old 04-27-2009, 11:43 AM   #8
CCT
Helper
 
CCT's Avatar
 
Join Date: Mar 2009
Posts: 4,126
OS: abacus



All I can tell you is that the spacing has to be correct.

Use right click 'Copy' on the line above I typed.

Click start, run, enter cmd /k

At the flashing cursor, right click and paste.

Then, left arrow back and overwrite (your user name) with the correct name.

Press enter.
CCT is offline  
Old 04-27-2009, 11:56 AM   #9
Guest
 
Join Date: May 2008
Posts: 29
OS:



The system cannot find the path specified. Again! Think I'll toss this computer!!!
gigiwhite1 is offline  
Old 04-27-2009, 12:04 PM   #10
CCT
Helper
 
CCT's Avatar
 
Join Date: Mar 2009
Posts: 4,126
OS: abacus



Well, the path has to match that which you have.

So, in Explorer, have a look under C: and make sure your path is C: into Documents and Settings into (user name) into My Documents into My Music.

If it isn't, then adjust the string.
CCT is offline  
Old 04-27-2009, 12:11 PM   #11
Guest
 
Join Date: Apr 2009
Posts: 25
OS:



You need to remember to include quotes around the path name if there's a space in it. So for example, you'd type
Code:
attrib -r "C:\Documents and Settings\(your username)\My Documents\My Music\"
exactly as it appears there to apply the attributes to your "My Music" folder. Without the quotes, Windows is attempting to apply the attribute settings to the path C:\Documents (which doesn't exist) and then proceeding to follow whatever the "and" command would have done, which in this case is nothing. This is because with the command prompt each space represents the end of one command portion and the beginning of the next.

Hope that helps!
GregW17 is offline  
Old 04-27-2009, 12:23 PM   #12
CCT
Helper
 
CCT's Avatar
 
Join Date: Mar 2009
Posts: 4,126
OS: abacus



Thanks GregW17.
CCT is offline  
Old 04-27-2009, 01:31 PM   #13
Guest
 
Join Date: May 2008
Posts: 29
OS:



Thanks all, but I can't get it done. "Path not found". I'm going to take it to a computer tech!!!
gigiwhite1 is offline  
Old 04-27-2009, 03:55 PM   #14
Microsoft MVP
 
TheOutcaste's Avatar

Microsoft Most Valuable Professional
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 3,339
OS: MS-Dos 6.22 - Win7



This little batch file will unset the read only attribute on a folder and all the subfolders it contains.
It saves, then restores the state of the Hidden or System attributes.
See #3 below for the easiest way to use it.

Copy the file to a folder on your path. I use C:\Scripts which I've added to the path statement. You can use C:\Windows or C:\Windows\System32 if you like.

Save it with a name you'll remember, I use unsetRO.cmd, you can use anything, just needs a .bat or .cmd on the end.

Three ways to use.
  1. Specify the path to the folder. The path must be in quotes if it contains spaces:
    unsetRO "%Userprofile%\My Documents\My Music"
    unsetRO "C:\Documents and Settings\<username>My Documents\My Music"
  2. Navigate to the folder in the Command Prompt and type unsetRO
    In a command window, type this:
    pushd c:\documents and settings\<username>My Documents\My Music
    (the path does not have to be quoted)
    now type unsetro
  3. Just copy this batch file into the folder and double click it.

Code:
@Echo Off
Setlocal EnableDelayedExpansion
Set _srcdir=%~1
If [%1]==[] Set _srcdir=%CD%
Echo Removing Read Only Attribute from these folders:
Echo Attributes Folder name
PushD "%_srcdir%\..\"
Call :_unset "%_srcdir%"
PoPD
PushD "%_srcdir%"
For /f "tokens=*" %%a In ('Dir /ARD /B /S') Do Call :_unset "%%a"
PopD
Endlocal
Goto:EOF
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:_unset
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Set _atr=%~a1
Echo !_atr!  %~f1
Set _h=
Set _s=
If "!_atr:~3,1!"=="h" Set _h=+h
If "!_atr:~4,1!"=="s" Set _s=+s
Attrib -h -s -r "%~1"
Attrib !_h! !_s! "%~1">Nul
Goto:EOF
HTH

Jerry
TheOutcaste is offline  
Old 04-27-2009, 11:59 PM   #15
Guest
 
Join Date: Apr 2009
Posts: 25
OS:



Have you tried changing the attributes outside of Safe Mode? It could be that Windows XP has a script that makes all files read-only to prevent damage to your machine (safe mode starts with minimal processes/services, making it easier for malware to attack) in safe mode.
GregW17 is offline  
Old 04-28-2009, 02:13 PM   #16
Guest
 
Join Date: May 2008
Posts: 29
OS:



Yes, I tried outside safe mode. That is how I started seeing everything was set as read only.
gigiwhite1 is offline  
Old 04-28-2009, 02:16 PM   #17
Guest
 
Join Date: May 2008
Posts: 29
OS:



Jerry:
Thank you but I guess it's just too complicated for me at this point. I'm not a technician, of course, or I wouldn't be having so much trouble. There are soooo many things happening to my computer now that I am afraid of trying anything. Now if I want to Save, Save As, or Save Picture As (if I get the dialog box at all) my screen goes back to desktop. Can't save anything except what I have in Word and that is beginning to have problems. I don't know what has happened. Probably me!!! I expect it to crash at any given moment.
gigiwhite1 is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2
Powered by vBadvanced CMPS v3.2.3


All times are GMT -7. The time now is 07:01 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts