
I know there a far better methods, but forgive me, that's what I'd like assistance with. Without them, theįreespace variable remains the same for every iteration. I had to put all the SETLOCAL's just to get the For statements toĪccurately read the remaining free space. Haven't figured out how to overcome that same file name prompt. Was a prompt to the user to confirm overwrite of same file names. It seems I cannot get a file larger than 2GB to copy using batch.īecause of this, I have created 8 differently named 2GB text files bat fileĪnd loaded those in the same directory with my overwrite. txt files of every standard size using a. Get "Reached recursive SETLOCAL limit" (However, it filled the drive) No doubt this is millions of miles from efficient, but I was goingĪt it with a just get something to work approach. I want it to handle up to 64GB removeable drivesį: just happens to be my particular USB drive letter bat file to the point I get disk full errors The overwrite data will be from a set of.

bat file to overwrite every byte of free space available on the media Sorry so exhaustive, but wanted everyone to know the exact problem. When I reformatted the drive, the photos were no longer recoverable. The only way I was able to get the photos unretrievable was to overwrite every last byte on the SD card with a single 128 byte text file repeatedly copied until full.

With several more attempts at copying and pasting data to the card, then running secure erasing programs to remove the data, the photos were still retrievable. Still, DiskDigger retrieved every last photo. I then ran Privazer.exe and performed a 3 Pass DoD overwrite on the SD card. Next, I ran my DiskDigger.exe program on the select drive and it retrieved every single photo. I then used Windows 8 format feature (unchecking the "Quick Format" option) that supposedly securely erases the data. I deleted the photos with Windows 8 normal delete method. with real data in order to prevent the recovery of previously deleted files on the device.īackground: I had a simple PNY brand 16GB SD card that was loaded with still photos taken by a hunting camera. I am in the process of creating a batch file to completely fill the remaining free space on USB drives, SD cards, Micro SD cards, etc.
