View Single Post
Old 02-09-07, 11:26 AM   #2
Absolution
AbsoUI
 
Absolution's Avatar
 
Join Date: Dec 2004
Posts: 933
Default Re: Can't delete windows.old folder after Vista upgrade

if you cant set the permissions while in administration mode (turn UAC off temp) use the utility called either icacls.exe (vista) from command prompt or cacls (xp, deprecated in vista but still works probably)

Code:
icacls file /grant Administrator:(D,WDAC)
- Will grant the user Administrator Delete and Write DAC
  permissions to file
is what i used to delete my safe disk files
short file names work for the utility if you have lame arabic named files (you can't set the permissions then) - ex A~0F3035.dll would be like A<trashhere>.dll
use the syntax dir /X


ex
Code:
09/18/2006  03:43 PM                24 autoexec.bat
09/18/2006  03:43 PM                10 config.sys
02/05/2007  09:01 PM    <DIR>          Data
02/05/2007  10:19 PM               599 DrvInst (1).log
02/05/2007  10:19 PM               286 DrvInst (2).log
02/05/2007  10:21 PM            50,587 DrvInst.log
01/17/2007  03:26 PM                15 evga.txt
02/05/2007  10:22 PM             1,151 Install.log
01/16/2007  02:04 PM    <DIR>          kevin
02/06/2007  12:00 AM    <DIR>          LG Electronics
02/06/2007  02:43 PM    <DIR>          NVIDIA
01/24/2007  07:22 PM    <DIR>          Perl
01/30/2007  03:07 AM               781 prog1.pl
01/30/2007  03:07 AM               955 prog2.pl
02/09/2007  02:21 AM    <DIR>          Program Files
02/05/2007  12:37 AM    <DIR>          SQLEXPRESS
01/30/2007  04:43 PM    <DIR>          Temp
01/30/2007  06:41 PM    <DIR>          test
01/17/2007  03:18 PM    <DIR>          Users
02/06/2007  08:14 PM    <DIR>          Windows
              10 File(s)         55,310 bytes
              13 Dir(s)  72,656,215,040 bytes free
becomes
Code:
09/18/2006  03:43 PM                24              autoexec.bat
09/18/2006  03:43 PM                10              config.sys
02/05/2007  09:01 PM    <DIR>                       Data
02/05/2007  10:19 PM               599 DRVINS~1.LOG DrvInst (1).log
02/05/2007  10:19 PM               286 DRVINS~2.LOG DrvInst (2).log
02/05/2007  10:21 PM            50,587              DrvInst.log
01/17/2007  03:26 PM                15              evga.txt
02/05/2007  10:22 PM             1,151              Install.log
01/16/2007  02:04 PM    <DIR>                       kevin
02/06/2007  12:00 AM    <DIR>          LGELEC~1     LG Electronics
02/06/2007  02:43 PM    <DIR>                       NVIDIA
01/24/2007  07:22 PM    <DIR>                       Perl
01/30/2007  03:07 AM               781              prog1.pl
01/30/2007  03:07 AM               955              prog2.pl
02/09/2007  02:21 AM    <DIR>          PROGRA~1     Program Files
02/05/2007  12:37 AM    <DIR>          SQLEXP~1     SQLEXPRESS
01/30/2007  04:43 PM    <DIR>                       Temp
01/30/2007  06:41 PM    <DIR>                       test
01/17/2007  03:18 PM    <DIR>                       Users
02/06/2007  08:14 PM    <DIR>                       Windows
              10 File(s)         55,310 bytes
              13 Dir(s)  72,656,215,040 bytes free
Absolution is offline