Skip to content

Instantly share code, notes, and snippets.

@hklcf
Created August 4, 2016 12:58
Show Gist options
  • Save hklcf/c79ff1c94bfec9134018c256bd858cb0 to your computer and use it in GitHub Desktop.
Save hklcf/c79ff1c94bfec9134018c256bd858cb0 to your computer and use it in GitHub Desktop.
for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk where "Compressed='FALSE'" get caption^,freespace') do attrib +r +a +s +h "%%i\system.sys"&&del "%%i\system.sys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment