Thread: Useful programs
View Single Post
  #7  
Old 01-10-2022, 02:46
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Thanks for the hint with fsutil, took me a bit to understand as I have never worked with it. Here is a working batch

Code:
FOR /R %%a IN ("*.bk2") DO (fsutil file setzerodata offset=0 length=%%~za "%%a")
It fills all selected files by file extension in current and sub folders with zeroes, beginning from first offset to last.
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Grumpy (07-10-2022), Masquerade (01-10-2022)