Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack (2) Thread Tools Display Modes
Old 31-08-2007, 01:56 AM   2 links from elsewhere to this Post. Click to view. #1 (permalink)
 Macboy
 
goobimama's Avatar
 
Join Date: Sep 2004
Location: Goa
Posts: 4,486
Default Cannot delete Windows folder


Okay. I'm not that dumb as to attempt to delete a Windows folder into which I'm logged into. I had a system crash, and then installed Vista on a different partition.

Now it won't let me delete the Windows folder of the earlier installation (as well as Program Files, and Program data)

I've tried unlocking software, booting into XP.

What must I do to delete this data which is hogging at least 15GB of my HDD?
__________________
I'm like a bird... :)
goobimama is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 31-08-2007, 02:01 AM   #2 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: Cannot delete Windows folder

Linux live cd which has out of the box NTFS write access? Wolvix Hunter 1.1.0 comes to mind. There's a cub edition which is a smaller download but I dunno if the cub edition incorporates NTFS write access.

I use Linux live cds to do all my trouble shooting, be it on a Windows box or a Linux box, simply because Linux sidesteps ALL the crap Windows showers all over you.
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 31-08-2007, 02:22 AM   #3 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Cannot delete Windows folder

Its not letting you delete coz you don't hv proper permissions on those folders. Actually by default "TrustedInstaller" hv the ownership of those system folders. Thats why you are not able to delete them.

Just change the ownership of those folder to yourself and then assign all permissions to your account and then you'll be able to delete them.

You can also take help from the following registry file, which will add "Take Ownership" option in folders context menu and it'll be very easy to take ownership.

Code:
Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 31-08-2007, 02:33 AM   #4 (permalink)
 Macboy
 
goobimama's Avatar
 
Join Date: Sep 2004
Location: Goa
Posts: 4,486
Default Re: Cannot delete Windows folder

bu..bu....bhuu...bhuu....

Maybe a simple guide as to how to accomplish that?
__________________
I'm like a bird... :)
goobimama is offline  
Old 31-08-2007, 02:42 AM   #5 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Cannot delete Windows folder

Just copy the code and paste it in notepad, then save the file with name "vishal.reg" (including quotes). Then run the file and it'll add "Take Ownership" option in folders context menus.

Now right-click on "Windows" and other folders which you want to delete and select "Take Ownership". It'll automatically change the ownership and you should be able to delete them.
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 31-08-2007, 03:13 AM   #6 (permalink)
 Macboy
 
goobimama's Avatar
 
Join Date: Sep 2004
Location: Goa
Posts: 4,486
Default Re: Cannot delete Windows folder

Can't find the picture for that smiley who bows down in respect, but its the thought that counts.

Thanks a lot for that, VIShal gupTA. I knew I could count on this forum to help me out.
__________________
I'm like a bird... :)
goobimama is offline  
Old 31-08-2007, 04:13 AM   #7 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,791
Default Re: Cannot delete Windows folder

Quote:
Originally Posted by goobimama
Can't find the picture for that smiley who bows down in respect
You mean this one ? ( sorry its direct link )

Get it Here
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is offline  
Old 31-08-2007, 08:28 AM   #8 (permalink)
Banned
 
slugger's Avatar
 
Join Date: May 2004
Location: Baudland
Posts: 2,433
Default Re: Cannot delete Windows folder

Quote:
Originally Posted by Vishal Gupta
"vishal.reg"
slugger is offline  
Old 31-08-2007, 08:53 AM   #9 (permalink)
Distinguished Member
 
anandk's Avatar
 
Join Date: Mar 2005
Location: Pune
Posts: 3,783
Default Re: Cannot delete Windows folder

Run > cleanmgr /sageset:1 > click enter.
u will get the enhanced disk cleanup utility

check the option 'remove all old/previuos windows installation files'.
__________________
> www.TheWindowsClub.com <
= www.WinVistaClub.com =
Microsoft® MVP
anandk is offline  
Old 31-08-2007, 11:25 AM   #10 (permalink)
You gave been GXified
 
gxsaurav's Avatar
 
Join Date: Jan 2007
Location: New Delhi
Posts: 5,633
Default Re: Cannot delete Windows folder

Quote:
Run > cleanmgr /sageset:1 > click enter.
u will get the enhanced disk cleanup utility

check the option 'remove all old/previuos windows installation files'.
Much simpler
__________________
about.me/gxsaurav
gxsaurav is offline  
Old 31-08-2007, 01:38 PM   #11 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Cannot delete Windows folder

Quote:
Originally Posted by goobimama
Can't find the picture for that smiley who bows down in respect, but its the thought that counts.

Thanks a lot for that, VIShal gupTA. I knew I could count on this forum to help me out.
My pleasure. We all are here to help each other.
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 25-09-2008, 06:50 PM   #12 (permalink)
TheSaint
 
NucleusKore's Avatar
 
Join Date: Jun 2004
Location: Antigua
Posts: 3,447
Default Re: Cannot delete Windows folder

Hey thanks, was looking for this one for my department pc. They installed windows again and again, put that hard disk in another system and installed windows again, and now all our old files open read only. Will try the above trick.
__________________
http://www.neville.in
http://www.linuxrocks.in
"The Future Is Open"
NucleusKore is offline  
Old 25-09-2008, 07:07 PM   #13 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Cannot delete Windows folder

Thanks to both vishal gupta and anandk, I was searching for this too!
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 26-09-2008, 12:20 AM   #14 (permalink)
AFK
 
thewisecrab's Avatar
 
Join Date: Oct 2006
Location: Bombay
Posts: 1,599
Default Re: Cannot delete Windows folder

Who bumped this?
Nice bump I must say
Thanks
__________________
Follow me on http://twitter.com/thewisecrab

"This Jen, is the internet"
thewisecrab is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/software-q/66949-cannot-delete-windows-folder.html
Posted By For Type Date
Brooks Brown's Lifestream - Enjoy your symptom! This thread Refback 18-12-2010 11:05 AM
Cannot delete Windows folder | Brooks Brown This thread Refback 21-06-2010 04:25 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete Xerox folder ThinkFree QnA (read only) 1 30-07-2007 02:41 PM
Delete Windows Folder estranged12 Software Q&A 1 21-05-2007 03:06 PM
How to Delete folder without name(shown in the image) Josan QnA (read only) 3 05-05-2007 05:57 PM
Delete NTFS Protected Folder enjoy QnA (read only) 1 22-06-2006 06:02 AM
Edit/Delete-proof folder in Win 98 linardni Tutorials 4 19-07-2005 09:35 PM

 
Latest Threads
- by chris
- by icebags
- by Tenida
- by Who

Advertisement




All times are GMT +5.5. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2