Re: walk_dir issue

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu