Thursday, May 24, 2018

Deleting Old (Non-Boot) Windows Vista Directory From Command-Line




Does anyone have a good script that will delete an old, non-booting, inactive Windows directory from the command-line?


Answer



Umm...



rd /s /q 


From a CMD command prompt.



How's that work for you?




Edit:



Okay-- how about:



takeown /F  /R /D Y
cacls /T /G Everyone:F
rd /s /q



Should be run from an elevated command-prompt.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...