Re: walk_dir issue
- Posted by rudy toews <rltoews at ilos.net> Oct 19, 2004
- 527 views
i use the dir95.e lib to get a list of files of the directory and return it to a sequence which i then loop through. excerpt from my conversion program. include dir95.e sequence vbetfname,vbettype,currentfileloc,currentfile,mm,dd,yy,cc,yyyy --cannot use the walk_dir statement, have to process in reverse order vbetlst = "c:\\versabet\\*.lst" vbetdirlist = sort(dir(vbetdir)) for i = allfiles to 3 by -1 do currentfile = lower(vbetdirlist[i][D_NAME]) fsize = vbetdirlist[i][D_SIZE] vbetfname = currentfile[1..length(currentfile)-4] vbettype = currentfile[length(currentfile)-3..length(currentfile)] currentfileloc = vbetdir & currentfile rudy