Wii Batch file do delete and rename file or folder?

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

Jan 19, 2010
  1. Jabe
    OP

    Member Jabe GBAtemp Regular

    Joined:
    Aug 28, 2009
    Messages:
    176
    Country:
    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

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    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

    Member Jabe GBAtemp Regular

    Joined:
    Aug 28, 2009
    Messages:
    176
    Country:
    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

    Member DKAngel GBAtemp Advanced Fan

    Joined:
    Jan 5, 2009
    Messages:
    659
    Location:
    Perth,Australia
    Country:
    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.
     

Share This Page