PtokaX forum

Development Section => Your Developing Problems => Topic started by: Corayzon on 29 June, 2004, 06:56:06

Title: HOW TO: Get a directory listing
Post by: Corayzon on 29 June, 2004, 06:56:06
hey guys, ...

im just tring to figure out how i can get a directory listing for cslave to execute added on mods.

ei:- list a directory to execute all the filenames with a certain extension name.

note: ive been looking round lua4 docs and a few other places and have had no luck.

thankz to all =]

noza
Title:
Post by: NotRabidWombat on 29 June, 2004, 07:44:15
execute("dir /b *.lua > temp.txt");

then read temp.txt

-NotRabidWombat
Title:
Post by: Corayzon on 29 June, 2004, 08:31:54
cheerz wombat, ...

your like a lua dictionary  :rolleyes: