Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #5464
| From | "John Williams (News)" <UCEbin@tiscali.co.uk> |
|---|---|
| Subject | Re: Using results of a directory cataloguing |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2018-06-11 08:38 +0100 |
| Message-ID | <570660a2afUCEbin@tiscali.co.uk> (permalink) |
| References | <2b768c7d-683e-4ccd-bb16-dae46badf4a6@googlegroups.com> |
| Organization | League of Underpaid, Overworked, Undervalued, and Overwhelmed |
In article <2b768c7d-683e-4ccd-bb16-dae46badf4a6@googlegroups.com>,
Xavier Louis Tardy <xltardy@gmail.com> wrote:
> I want to get all the file names in a directory, to be able to further
> use these file names (to do batch processing). Language : BASIC
> (prefered) or ASM. What should I do, to get sthing like (I presume) a
> pointer to a list of all file names in a chosen directory ?
I quite often use EnumDir to a file as a quick and easy way of doing this:
EnumDir <Prune$Dir>.^ <Prune$Dir>.list
SetType <Prune$Dir>.list text
in the Run file of the application. Then you simply have a sequential text
list to process as you wish. Of course all objects are listed, including
directories and the application itself.
The above is from my Prune program used to delete excess back-ups.
Hope this helps,
John
--
John Williams, now back in the UK - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Using results of a directory cataloguing xltardy@gmail.com - 2018-06-10 20:13 -0700
Re: Using results of a directory cataloguing "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-06-11 08:38 +0100
Re: Using results of a directory cataloguing Alan Adams <alan@adamshome.org.uk> - 2018-06-11 10:20 +0100
Re: Using results of a directory cataloguing jgh@mdfs.net - 2018-06-12 02:55 -0700
Re: Using results of a directory cataloguing Martin <News03@avisoft.f9.co.uk> - 2018-06-12 13:34 +0100
Re: Using results of a directory cataloguing druck <news@druck.org.uk> - 2018-06-12 18:25 +0100
Re: Using results of a directory cataloguing xltardy@gmail.com - 2018-06-15 21:04 -0700
Re: Using results of a directory cataloguing xltardy@gmail.com - 2018-06-15 21:20 -0700
csiph-web