1. Download our Official Android App: Forums for Android!

Scripting

Discussion in 'Android Apps & Games' started by nwtn, Jul 3, 2011.

  1. nwtn

    nwtn Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    7
    Joined:
    Jul 3, 2011

    Jul 3, 2011
    7
    0
    5
    Hot to make a simple script in android? I've found just very difficult guide for developping very complex sw. I just would like to make a simple script moving some file from a folder to another.Something like

    mv /sdcard/folder1/* /sdcard/folder2/

    How can i do it?

    [i know bash language already]

    thank you
     

    Advertisement

  2. karandpr

    karandpr Android Expert
    Rank:
     #54
    Points:
    443
    Posts:
    2,952
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    2,952
    1,815
    443
    Male
    GScriptLite

    Enjoy !!! .Script away !!!

    Pity it is an abandonware :(
     
    alostpacket and nwtn like this.
  3. nwtn

    nwtn Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    7
    Joined:
    Jul 3, 2011

    Jul 3, 2011
    7
    0
    5
    please can u explain me how it works? I installed it. I wrote down a simple script:

    mkdir test
    cd test
    ls


    but it doesnt works. It doesnt create the folfer test and command like mv and cp doesnt work too. Can u give some example of working script, please? The command dont work with pre-command su too.

    *** I've rooted with superoneclick without installing busybox. Is it a problem?
     
  4. karandpr

    karandpr Android Expert
    Rank:
     #54
    Points:
    443
    Posts:
    2,952
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    2,952
    1,815
    443
    Male
    Set the working directory first.
    Like /system ,/sdcard ,

    cd /sdcard
    mkdir test
    cd test
    ls


    :D
     
    alostpacket likes this.

Share This Page

Loading...