NoahD Asked: 2009-07-09 09:02:50 +0800 CST2009-07-09 09:02:50 +0800 CST 2009-07-09 09:02:50 +0800 CST Deleting Old (Non-Boot) Windows Vista Directory From Command-Line 772 Does anyone have a good script that will delete an old, non-booting, inactive Windows directory from the command-line? windows scripting windows-vista 2 Answers Voted Best Answer Evan Anderson 2009-07-09T09:16:02+08:002009-07-09T09:16:02+08:00 Umm... rd /s /q <directory name> From a CMD command prompt. How's that work for you? Edit: Okay-- how about: takeown /F <directory name> /R /D Y cacls <directory name> /T /G Everyone:F rd /s /q <directory name> Should be run from an elevated command-prompt. Sean Earp 2009-07-09T11:28:54+08:002009-07-09T11:28:54+08:00 Not sure what OS you are running, but if it is Vista, instructions on deleting the windows.old directory can be found here: http://support.microsoft.com/kb/930527 or http://support.microsoft.com/kb/933212 (they pretty much say the same thing). Edit: I see in the subject line that it is Vista... Those KB articles should do the trick.
Umm...
From a CMD command prompt.
How's that work for you?
Edit:
Okay-- how about:
Should be run from an elevated command-prompt.
Not sure what OS you are running, but if it is Vista, instructions on deleting the windows.old directory can be found here: http://support.microsoft.com/kb/930527 or http://support.microsoft.com/kb/933212 (they pretty much say the same thing).
Edit: I see in the subject line that it is Vista... Those KB articles should do the trick.