1. Getting filenames from a directory & sub directories
- Posted by Tony Steward <tony.steward at gmail.com> Sep 12, 2004
- 443 views
Hello all, Any got an example on how I might choose A directory & get all file names in that directory & all sub directories? -- Regards Tony Steward IF IT IS TO BE IT IS UP TO ME!
2. Re: Getting filenames from a directory & sub directories
- Posted by Derek Parnell <ddparnell at bigpond.com> Sep 12, 2004
- 444 views
Tony Steward wrote: > > Hello all, > Any got an example on how I might choose A directory & get all file > names in that directory & all sub directories? > I'll assume Windows and not DOS or Linux. I'll also assume win32lib.ew as well, okay? Given that, have a look at the "selectFolder" demo program. This will show one method of choosing a folder. Once you have the folder name, to get all file and sub-folder names, you use the dir() built-in function. This only works on a single level of folder. To search down sub-folders, either use a recursive routine or have a look at the "walk_dir()" built-in function. Both dir() and walk_dir() come with Euphoria. -- Derek Parnell Melbourne, Australia