Wii Batch file do delete and rename file or folder?

Discussion in 'Wii - Hacking' started by Jabe, Jan 19, 2010.

  1. Jabe
    OP

    Jabe GBAtemp Regular

    Member
    176
    1
    Aug 28, 2009
    France
    Hi!

    I would like to know if there is any way to launch some .bat file or something similar with Homebrew Browser (or WiiXplorer maybe) in order to automatically:
    -rename some folder
    -delete some folders
    -delete some files
    -display some "Job done" message

    It will be usefull to delete files faster on Wii, for example I created some .bat file for PC:
    Warning: Spoilers inside!
    How to write the same command lines and run them directly from Wii?
     
  2. giantpune

    giantpune GBAtemp Addict

    Member
    2,860
    122
    Apr 10, 2009
    United States
    the more common way ive seen it written is something like this
    Code:
    fatinitdefault();
    remove("sd:/apps/blabla");
    remove("sd:/apps/blabla1");
    remove("sd:/apps/blabla2");
    but i guess you could do something like
    Warning: Spoilers inside!

    its just somehting i whipped up, so it might need some tweaking. obviously, cd isn't handled correctly, as it will max out just by doing cd(apps) cd (..). im sure you can figure out a better way to do it.
     
  3. Jabe
    OP

    Jabe GBAtemp Regular

    Member
    176
    1
    Aug 28, 2009
    France
    Up!

    That's a good start, sorry for late answer I didn't see your answer before as I didn't get the mail notification [​IMG].

    Once I write the proper code, how do I compile it to launch it with homebrew browser?
     
  4. DKAngel

    DKAngel GBAtemp Advanced Fan

    Member
    664
    0
    Jan 5, 2009
    Perth,Australia
    or u could just use the delete function the hbc has
     
  5. myspacee

    myspacee Newbie

    Find 'batch' idea very interesting.

    This can resolve in SNEEK 47 item on screen problem.

    on SD we can have more than 1 NAND dump. From HBC we can add several 'batch' that:
    - rename actual folder to temp folder
    - rename 'NAND2' folder to actualfolder
    - run SNEEK

    In general script can resolve different things, but this is first thing i think.

    what you think about ?

    m.