Recent Content by SenHu

  1. SenHu
    Rnaming all .bmp files at once


    It could not get easier than this.


    Code:
    # Script RemaneBMP.txt
    var str folder, prefix, list, file, newname
    cd $folder
    lf -n "*.bmp" $folder > $list
    while ($list <> "")
    do
        lex "1" $list > $file
        stex -p "^/^l[" $file > $newname
        set $newname = $prefix + $newname
        system rename ("\""+$file+"\"") ("\""+$newname+"\"")
    done


    This is in biterscripting ( http://www.biterscripting.com ). To try (first in a test folder), save the code in file "C:/Scripts/RenameBMP.txt", start biterscripting, enter the following command exactly as below.


    Code:
    script "C:/Scripts/RenameBMP.txt" folder("C:/Test") prefix("my prefix")

    This will rename all .bmp files in folder "C:/Test" with prefix "my prefix".

    Hope this helps.
    Post by: SenHu, Feb 2, 2010 in forum: Technology