代码
s files="路径"
//不能输入绝对路径
fn file_mk.delfile(files)
//调用函数
//file_mk.myu模板里放入以下代码
fn delfile(files)
sr(files,"%","",file)
fdir(a)
ss(a+"/"+file,fls)
fl(fls,fvs)
for(filev;fvs)
{
ss(files+filev,luj)
fd(luj,fds)
sr(fds,"true","删除成功",fds)
sr(fds,"false","删除失败",fds)
ss("文件路径:"+luj+"删除状态:"+fds,vs)
syso(vs)
}
end fn
|