在什么系统下?
也可以用php写的

解决方案 »

  1.   

    用目录递归的方式!!!<?
    function f_listDirectory($strLangDir="./")
    {
    $dirCurrent=dir($strLangDir);
    while($strFile=$dirCurrent->read())
    {
    $tmp = strtolower(strFile);

    if(is_dir($strFile) && $strFile!="." && $strFile!="..")
    {
    exec("mv $strFile $tmp");

    chdir("$tmp");
    f_listDirectory();
    chdir("..");
    }

    if(is_file($strFile)) 
    {
    exec("mv $strFile $tmp");
    }
    }
    $dirCurrent->close();
    }$path_of_ftp = "/path/of/your/directory";
    chdir($path_of_ftp);
    f_listDirectory();
    ?>
      

  2.   

    http://www.mistruster.com/soft/ckrn_108.exe
    让你对目录中文件进行复杂的更名,操作简单,支持中文文件名。