[PORT] Windows 7 Defrag tool for Windows 8 and up

Discussion in 'NDS - Emulation and Homebrew' started by Yeniaul, Nov 17, 2015.

?

Useful?

  1. Yes

    20.0%
  2. No

    60.0%
  3. Maybe

    20.0%
  1. Yeniaul
    OP

    Yeniaul Advanced Member

    Newcomer
    70
    12
    Apr 24, 2013
    United States
    (Note: This is a port to Windows 8, 8.1, and 10.)

    This can be used to get past Windows 8 (and up) not wanting to defragment SD Cards and/or Flash Drives. It's basically the Windows 7 version, but (hopefully) works above that now.

    File is attached.

    Report bugs below!
     

    Attached Files:

  2. Azure_Kytia

    Azure_Kytia Advanced Member

    Newcomer
    80
    49
    Sep 9, 2015
    Why would you ever want to defragment an SD card? Flash Memory does not gain the benefits from defragmenting that traditional hard drives do. You're actually shortening the lifespan of your SD card by doing this.
     
    Last edited by Azure_Kytia, Nov 17, 2015
    Arras and Wolfgange like this.
  3. Yeniaul
    OP

    Yeniaul Advanced Member

    Newcomer
    70
    12
    Apr 24, 2013
    United States
    R4i Disc Error -83.
    Shall I say more?
    (I got that and went to defragment it. 60% fragmentation.)

    The R4 (and clones) like to stop working when they find fragmentation. Basically, I did this because people shouldn't have to do what I did to port this, they could just DOWNLOAD it.
     
    Last edited by Yeniaul, Nov 17, 2015
  4. TecXero

    TecXero Technovert

    Member
    2,814
    906
    Apr 13, 2014
    United States
    Mainframe
    You're better off reformatting the card with the format tool from secure digital and copying everything back over. At the very least, just copy everything off of it, erase everything on the card, then copy everything back over. Defragmenting will do some needless thrashing and won't have everything pushed to the beginning of the partition, so anything you copy over in the future will probably end up fragmented as well (assuming it's large enough to not fit in the first set of empty sectors between files)
     
  5. Yeniaul
    OP

    Yeniaul Advanced Member

    Newcomer
    70
    12
    Apr 24, 2013
    United States
    Yeah, true... I just think it's easier this way than copying, especially since I can leave the defrag going and get home and everything's OK, and not come from work and forget to copy everything over again and waste my time...
     
  6. TecXero

    TecXero Technovert

    Member
    2,814
    906
    Apr 13, 2014
    United States
    Mainframe
    Huh, it generally only takes me a minute for everything to copy over from my 3DS 32GB SD card, even less for my DS flashcart's micro SD. I backup all my stuff every week, so I'm familiar with the time it takes. Since formatting doesn't take long, though writing is slower than reading, it would stand to reason it would take less than five minutes to copy everything over, reformat the card, and copy everything back over. Maybe you should look into a better SD reader for your setup?
     
  7. Arras

    Arras GBAtemp Guru

    Member
    5,840
    2,659
    Sep 14, 2010
    Netherlands
    If you can port this tool, why not just make a quick tool that copies everything to your hard drive, reformats the SD card and copies everything back? It's much, much better for your flash memory. There's a very good reason Windows 8+ refuses to defragment them.
     
    TecXero likes this.
  8. Abcdfv

    Abcdfv What comes around goes around.

    Member
    1,437
    583
    Dec 24, 2013
    United States
    Not everyone has usb 3.0 ports yet.
     
  9. Yeniaul
    OP

    Yeniaul Advanced Member

    Newcomer
    70
    12
    Apr 24, 2013
    United States
    Porting this was easy for me (some compatibility tricks here and there), but making a tool that detects SDs and backs them up? That's beyond my level...

    Plus, I want something that's easy to use, and I can come home and play and not wait for another hour or more to copy over 16 GB of STUFF.
     
    Last edited by Yeniaul, Nov 17, 2015
  10. TecXero

    TecXero Technovert

    Member
    2,814
    906
    Apr 13, 2014
    United States
    Mainframe
    I just do it manually, doesn't take all that long, even on USB 2.0. I'm not the one that mentioned making a tool to do that automatically, so I think you quoted the wrong post. :grog:
     
  11. Yeniaul
    OP

    Yeniaul Advanced Member

    Newcomer
    70
    12
    Apr 24, 2013
    United States
    Forgot to quote the other post. sorry!
     
    TecXero likes this.