RetroBASIC ReadOnly Archive
Quote from: B+ on September 24, 2018, 07:06:52 PMWell I finally got a useful directory walk working from SmallBASIC.Chris has a Keyword DIRWALK but it isn't easy for me to use but I bet Chris could extract 100 x's faster than I.When you launch SmallBASIC you are actually looking at the output from the DIRWALK command. (SmallBASIC runs main.bas which provides the user interface)
Well I finally got a useful directory walk working from SmallBASIC.Chris has a Keyword DIRWALK but it isn't easy for me to use but I bet Chris could extract 100 x's faster than I.
'Dir Walk 2.bas for SmallBASIC 0.12.13 B+ 2018-09-28FUNC sto(x) if right(lcase(x.name), 4) = ".bas" pathname = iff( x.depth > 0, (x.path + chr(92) + x.name), (x.path + x.name)) container << pathname fi sto = TRUEENDDIRWALK "." USE sto(x)SORT container'check and file resultsFOR i IN container DO ? itsave "BAS files.txt", container
Nice to see MasmBasic in action again. Are the files coming out sorted automatically?
Wow! took awhile to give birth to an answer. ;-))