投棄
投棄
#runtime "hsp3cl"#cmpopt varinit 1#module @dir#const fileOnly 1#const dirOnly 5#defcfunc local dir str path,str ptn,str addpath,str _filesN,local filesfilesN=_filesNdirlist files,path+ptn,fileOnlysplit files,"\n",filesforeach filesif files.cnt="": breakif filesN!="": filesN+="\n"filesN+=addpath+"\\"+files.cntloopsdim filesdirlist files,path+ptn,dirOnlysplit files,"\n",filesforeach filesif files.cnt="": breakif filesN!="": filesN+="\n"filesN+=dir(path+files.cnt+"\\",ptn,addpath+"\\"+files.cnt,filesN)loopreturn filesN#define global ctype dir(%1,%2="*",%3="",%4="") dir@@dir(%1,%2,%3,%4)#globalmes dir("C:\\hsp35\\")