How to delete folders from previous install?

Posted: 12-18-2006, 02:17 PM
Hi,

This has been asked and answered many times, but none of the answers semms
to work here. I started installing Vista from the XP, but for some reaosn
interupted and installed from the DVD boot. Unfortunately, the old
installation files were renamed "windows.old" and I can't get rid of them!
Tried from both OS'es (XP and Vista); tried taking ownership; tried running
a command prompt as administrator - still no rights to delete. What gives,
besides re-formatting?!!

Piotr

Reply With Quote

Responses to "How to delete folders from previous install?"

Ray
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 02:34 PM
Try opening the folders and then deleting the individual folders/files, I
found that I had to do it this way. It seems that the permissions don't
carry down all the way.
There must be a better way of doing it though, I hope someone knows and
answers.

Ray

"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
> Hi,
>
> This has been asked and answered many times, but none of the answers semms
> to work here. I started installing Vista from the XP, but for some reaosn
> interupted and installed from the DVD boot. Unfortunately, the old
> installation files were renamed "windows.old" and I can't get rid of them!
> Tried from both OS'es (XP and Vista); tried taking ownership; tried
> running a command prompt as administrator - still no rights to delete.
> What gives, besides re-formatting?!!
>
> Piotr
Reply With Quote
Piotr Wozniacki
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 04:42 PM
Doesn't work, either. Each single file - even though I'm the owner - is
impossible to be deleted. Stupid. Do I really need to format, and
reinstal?!!

Piotr


"Have a Go" <HaveaGo@discussions.microsoft.com> wrote in message
news:F0C66B9D-E412-43F9-806D-38C6353F612B@microsoft.com...
>
> I have had to use this same procedure in XP
>
>
> "Ray" wrote:
>
>> Try opening the folders and then deleting the individual folders/files, I
>> found that I had to do it this way. It seems that the permissions don't
>> carry down all the way.
>> There must be a better way of doing it though, I hope someone knows and
>> answers.
>>
>> Ray
>>
>> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
>> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>> > Hi,
>> >
>> > This has been asked and answered many times, but none of the answers
>> > semms
>> > to work here. I started installing Vista from the XP, but for some
>> > reaosn
>> > interupted and installed from the DVD boot. Unfortunately, the old
>> > installation files were renamed "windows.old" and I can't get rid of
>> > them!
>> > Tried from both OS'es (XP and Vista); tried taking ownership; tried
>> > running a command prompt as administrator - still no rights to delete.
>> > What gives, besides re-formatting?!!
>> >
>> > Piotr
>>
>>
Reply With Quote
R. C. White, MVP
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 05:42 PM
Hi, Piotr.

Let's get more specific on a couple of points:
> Tried from both OS'es (XP and Vista); tried taking ownership;
Ownership of what? Owned by whom?

Can you create a new User (if you haven't already) named "Piotr" (perhaps),
and have that User take Ownership of the entire drive, or, at least, the
entire \Windows.old folder? In my experience, this took much longer than I
expected because it had to take ownership of each file and folder, one at a
time. But when it finally ends, the User Piotr should be able to delete the
folder.

Let us know, step by step, exactly what you did and exactly what error
message or other result you saw.
> tried running a command prompt as administrator - still no rights to
> delete.
In the Command Prompt window, what command and parameters did you use? As
I'm sure you know, we don't "delete" a folder, we "remove" a directory. If
we enter simply "rd \windows.old", we probably will get a message that the
directory is not empty. If we append the /s switch, it will try to remove
the entire directory tree, including all subfolders and files, even though
not empty - but it will first ask us "Are you sure".

Again, please tell us exactly what you typed in the Command Prompt window
and exactly what results you saw.

RC
--
R. C. White, CPA
San Marcos, TX
rc@grandecom.net
Microsoft Windows MVP
(Running Windows Mail 7.0 in Vista x64)

"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
> Hi,
>
> This has been asked and answered many times, but none of the answers semms
> to work here. I started installing Vista from the XP, but for some reaosn
> interupted and installed from the DVD boot. Unfortunately, the old
> installation files were renamed "windows.old" and I can't get rid of them!
> Tried from both OS'es (XP and Vista); tried taking ownership; tried
> running a command prompt as administrator - still no rights to delete.
> What gives, besides re-formatting?!!
>
> Piotr
Reply With Quote
Piotr Wozniacki
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 06:01 PM
Hi,

I didn't create a new account; being logged as "Piotr" I took the ownership
of the windows.old folder, including subfolder and files. I then checked the
security setting for a couple of deeply burried files - the ownership is
mine all right.

When trying to delete from Windows Explorer, there were 2 stages: first, the
system informed if I want the administrator allowing me to delete; I clicked
OK and - after a while - the error message "Accessd denied" appeared for
each consecutive file (after pressing Skip).

Very similar was how it looked in the Administrators console; I typed "rmdir
/s windows.old"; the system asked me if I'm sure, I accepted and there was a
bunch of error messages about trying to delete individual files with access
denied again.

What's my next move?

Piotr

"R. C. White, MVP" <rc@grandecom.net> wrote in message
news:336D6612-380C-44B6-BBAE-369FE9321017@microsoft.com...
> Hi, Piotr.
>
> Let's get more specific on a couple of points:
>
>> Tried from both OS'es (XP and Vista); tried taking ownership;
>
> Ownership of what? Owned by whom?
>
> Can you create a new User (if you haven't already) named "Piotr"
> (perhaps), and have that User take Ownership of the entire drive, or, at
> least, the entire \Windows.old folder? In my experience, this took much
> longer than I expected because it had to take ownership of each file and
> folder, one at a time. But when it finally ends, the User Piotr should be
> able to delete the folder.
>
> Let us know, step by step, exactly what you did and exactly what error
> message or other result you saw.
>
>> tried running a command prompt as administrator - still no rights to
>> delete.
>
> In the Command Prompt window, what command and parameters did you use? As
> I'm sure you know, we don't "delete" a folder, we "remove" a directory.
> If we enter simply "rd \windows.old", we probably will get a message that
> the directory is not empty. If we append the /s switch, it will try to
> remove the entire directory tree, including all subfolders and files, even
> though not empty - but it will first ask us "Are you sure".
>
> Again, please tell us exactly what you typed in the Command Prompt window
> and exactly what results you saw.
>
> RC
> --
> R. C. White, CPA
> San Marcos, TX
> rc@grandecom.net
> Microsoft Windows MVP
> (Running Windows Mail 7.0 in Vista x64)
>
> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>> Hi,
>>
>> This has been asked and answered many times, but none of the answers
>> semms to work here. I started installing Vista from the XP, but for some
>> reaosn interupted and installed from the DVD boot. Unfortunately, the old
>> installation files were renamed "windows.old" and I can't get rid of
>> them! Tried from both OS'es (XP and Vista); tried taking ownership; tried
>> running a command prompt as administrator - still no rights to delete.
>> What gives, besides re-formatting?!!
>>
>> Piotr
>
Reply With Quote
Jane C
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 07:19 PM
Which build of Vista? Disk Cleanup can now remove those pesky windows.old
folders left behind after install.

--
Jane, not plain 64 bit enabled :-)
Batteries not included. Braincell on vacation ;-)
"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:em6l99$b92$1@nemesis.news.tpi.pl...
> Hi,
>
> I didn't create a new account; being logged as "Piotr" I took the
> ownership of the windows.old folder, including subfolder and files. I then
> checked the security setting for a couple of deeply burried files - the
> ownership is mine all right.
>
> When trying to delete from Windows Explorer, there were 2 stages: first,
> the system informed if I want the administrator allowing me to delete; I
> clicked OK and - after a while - the error message "Accessd denied"
> appeared for each consecutive file (after pressing Skip).
>
> Very similar was how it looked in the Administrators console; I typed
> "rmdir /s windows.old"; the system asked me if I'm sure, I accepted and
> there was a bunch of error messages about trying to delete individual
> files with access denied again.
>
> What's my next move?
>
> Piotr
>
> "R. C. White, MVP" <rc@grandecom.net> wrote in message
> news:336D6612-380C-44B6-BBAE-369FE9321017@microsoft.com...
>> Hi, Piotr.
>>
>> Let's get more specific on a couple of points:
>>
>>> Tried from both OS'es (XP and Vista); tried taking ownership;
>>
>> Ownership of what? Owned by whom?
>>
>> Can you create a new User (if you haven't already) named "Piotr"
>> (perhaps), and have that User take Ownership of the entire drive, or, at
>> least, the entire \Windows.old folder? In my experience, this took much
>> longer than I expected because it had to take ownership of each file and
>> folder, one at a time. But when it finally ends, the User Piotr should
>> be able to delete the folder.
>>
>> Let us know, step by step, exactly what you did and exactly what error
>> message or other result you saw.
>>
>>> tried running a command prompt as administrator - still no rights to
>>> delete.
>>
>> In the Command Prompt window, what command and parameters did you use?
>> As I'm sure you know, we don't "delete" a folder, we "remove" a
>> directory. If we enter simply "rd \windows.old", we probably will get a
>> message that the directory is not empty. If we append the /s switch, it
>> will try to remove the entire directory tree, including all subfolders
>> and files, even though not empty - but it will first ask us "Are you
>> sure".
>>
>> Again, please tell us exactly what you typed in the Command Prompt window
>> and exactly what results you saw.
>>
>> RC
>> --
>> R. C. White, CPA
>> San Marcos, TX
>> rc@grandecom.net
>> Microsoft Windows MVP
>> (Running Windows Mail 7.0 in Vista x64)
>>
>> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
>> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>>> Hi,
>>>
>>> This has been asked and answered many times, but none of the answers
>>> semms to work here. I started installing Vista from the XP, but for some
>>> reaosn interupted and installed from the DVD boot. Unfortunately, the
>>> old installation files were renamed "windows.old" and I can't get rid of
>>> them! Tried from both OS'es (XP and Vista); tried taking ownership;
>>> tried running a command prompt as administrator - still no rights to
>>> delete. What gives, besides re-formatting?!!
>>>
>>> Piotr
>>
>
Reply With Quote
Piotr Wozniacki
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 07:41 PM
I should have added that - in the list of Group or user names in the
Security tab - there is only one entry for whom ALL permissions (including
the Special permissions) are ticked. This entry is called "Unknown
identity{long_number}, and probably is just a left-over after the first
installation, just like the "windows.old" folder itself (BTW, this folder
occupies 9.62 GB on disk and contains 50194 files in 9306 folders, so
deleting each file one by one is out of question - formatting and
reinstalling would be faster).

After my first couple of trials didn't work, I deleted this Unknown identity
and now I (the user Piotr) as well as the group Administrators have full
permissions, but NOT special permissions - I guess this is the clue. How to
grand the Special permissions (last entry at the bottom of the permissions
list) to myself, or the Administrator?

Frankly, I'd have formatted the drive and reinstalled Vista long ago instead
of trying to delete the folder in question, but I think it's important to
solve the problem in a more intelligent manner - after all, we're all going
to be using Vista on the regular basis...

Right now my version is RC2 Build 5744 (x64).

Please try to help me - what do you mean by Disk cleanup, Jane C?
"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:em6l99$b92$1@nemesis.news.tpi.pl...
> Hi,
>
> I didn't create a new account; being logged as "Piotr" I took the
> ownership of the windows.old folder, including subfolder and files. I then
> checked the security setting for a couple of deeply burried files - the
> ownership is mine all right.
>
> When trying to delete from Windows Explorer, there were 2 stages: first,
> the system informed if I want the administrator allowing me to delete; I
> clicked OK and - after a while - the error message "Accessd denied"
> appeared for each consecutive file (after pressing Skip).
>
> Very similar was how it looked in the Administrators console; I typed
> "rmdir /s windows.old"; the system asked me if I'm sure, I accepted and
> there was a bunch of error messages about trying to delete individual
> files with access denied again.
>
> What's my next move?
>
> Piotr
>
> "R. C. White, MVP" <rc@grandecom.net> wrote in message
> news:336D6612-380C-44B6-BBAE-369FE9321017@microsoft.com...
>> Hi, Piotr.
>>
>> Let's get more specific on a couple of points:
>>
>>> Tried from both OS'es (XP and Vista); tried taking ownership;
>>
>> Ownership of what? Owned by whom?
>>
>> Can you create a new User (if you haven't already) named "Piotr"
>> (perhaps), and have that User take Ownership of the entire drive, or, at
>> least, the entire \Windows.old folder? In my experience, this took much
>> longer than I expected because it had to take ownership of each file and
>> folder, one at a time. But when it finally ends, the User Piotr should
>> be able to delete the folder.
>>
>> Let us know, step by step, exactly what you did and exactly what error
>> message or other result you saw.
>>
>>> tried running a command prompt as administrator - still no rights to
>>> delete.
>>
>> In the Command Prompt window, what command and parameters did you use?
>> As I'm sure you know, we don't "delete" a folder, we "remove" a
>> directory. If we enter simply "rd \windows.old", we probably will get a
>> message that the directory is not empty. If we append the /s switch, it
>> will try to remove the entire directory tree, including all subfolders
>> and files, even though not empty - but it will first ask us "Are you
>> sure".
>>
>> Again, please tell us exactly what you typed in the Command Prompt window
>> and exactly what results you saw.
>>
>> RC
>> --
>> R. C. White, CPA
>> San Marcos, TX
>> rc@grandecom.net
>> Microsoft Windows MVP
>> (Running Windows Mail 7.0 in Vista x64)
>>
>> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
>> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>>> Hi,
>>>
>>> This has been asked and answered many times, but none of the answers
>>> semms to work here. I started installing Vista from the XP, but for some
>>> reaosn interupted and installed from the DVD boot. Unfortunately, the
>>> old installation files were renamed "windows.old" and I can't get rid of
>>> them! Tried from both OS'es (XP and Vista); tried taking ownership;
>>> tried running a command prompt as administrator - still no rights to
>>> delete. What gives, besides re-formatting?!!
>>>
>>> Piotr
>>
>
Reply With Quote
Richard Hay
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 07:47 PM
Try this - although it says for Windows One Care - same concept applies -
just change the directory - just make sure you do this in an elevated
command prompt.


--
Richard Hay
Windows Live Butterfly
Windows Beta Tester
http://WindowsObserver.com

"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
> Hi,
>
> This has been asked and answered many times, but none of the answers semms
> to work here. I started installing Vista from the XP, but for some reaosn
> interupted and installed from the DVD boot. Unfortunately, the old
> installation files were renamed "windows.old" and I can't get rid of them!
> Tried from both OS'es (XP and Vista); tried taking ownership; tried
> running a command prompt as administrator - still no rights to delete.
> What gives, besides re-formatting?!!
>
> Piotr
Reply With Quote
Piotr Wozniacki
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-18-2006, 07:53 PM

"Jane C" <jellybean@NOSPAMxjgarage.org> wrote in message
news:C479E19B-4B35-4D4C-BED3-9C7BBFC7262D@microsoft.com...
> Which build of Vista? Disk Cleanup can now remove those pesky windows.old
> folders left behind after install.
>
>
Jane C, you're a genius! I used the 'Previous wWindows installation(s)
option in Disk Cleanup and the windows.old folder is gone! Thanks!

But, it'd still be nice if we knew the method of effectively administer
permissions and organize our folders/files on our own computers, wouldn't
it?

Piotr

Reply With Quote
Jimmy Brush
Guest
Posts: n/a
 
Re: How to delete folders from previous install?
Posted: 12-19-2006, 12:47 AM
Hello,

Taking ownership of files does not automatically grant you "complete
control" over the files. The only thing ownership of an object entitles you
to do is to be able to add/remove permissions, even if the object does not
explicitly give you that privilege.

The problem you are running into is that even though you have ownership of
the files, you are not granted full control over the files, as you have
noticed; or, there are files that are explicitly denying you permission,
which take precendence over allow permissions.

As long as there are no deny permissions blocking you (which should be the
case unless you upgraded from another version of Vista), the following steps
should work:

1) open admin command prompt

- Click start
- Type: cmd
- right-click it under programs
- click Run As Administrator

2) take ownership of everything

In the command prompt:
cd ..\..\windows.old
takeown /F . /A /R /D Y

3) grant yourself permission to everything

In the command prompt:
icacls . /grant:r AdministratorsF) /T /L /Q

4) Delete everything

- Make sure you close any explorer or command windows that are looking at or
inside windows.old. If you don't, you will receive an error while performing
this step.

In the command prompt:
cd ..
rmdir /S /Q windows.old

That should do it

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete all previous versions of all files and folders? Roof Fiddler Windows Vista File Management 1 10-29-2006 06:26 PM
Restore files from backup made using a previous version of Windows Thomas Goddard Windows Vista File Management 0 09-08-2006 02:39 AM
Unable to restore from a previous backup zzmel Windows Vista Performance & Maintenance 0 06-21-2006 09:38 PM
File Access - Previous XP SP2 Install garvinr Windows Vista Networking & Sharing 1 06-16-2006 10:57 PM
Can not delete folders from Start Menu M@dhat3rr Windows Vista File Management 1 06-11-2006 12:46 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90