//FSO
import com;
import console;
 
//定义函数
function ListFiles(path = "/" ) {
    var fs = com.CreateObject("Scripting.FileSystemObject")
    var dir = fs.GetFolder( io.fullpath(path) )  

    for index,folder in com.each(dir.SubFolders) { 
        ListFiles( folder.path )
    }

    for index,file in com.each(dir.Files) {
        console.log(file.path)
    }
}


ListFiles();
console.pause();