[REBOL] Re: dir to a text file
From: mechtn:tkweb at: 14-Oct-2001 1:12
Hey guys i finally came up with my very own first script.. its bits and
peices from other code but i got it working.. it makes all the files in a
dir lowercase and then writes all their names to a txt file. Next i've got
to somehow read that textfile for file names and include them as attachments
for email and my program will be all finished! Thanks for all your help!
Koie Smith
REBOL [Title: "Write Dir to Txt File"]
filepath: %/c/rebol/orders/
foreach file read change-dir filepath [
rename file lowercase file
]
foreach file load filepath [
if find/any file "*" [
print ["adding:" file]
write/append %test.txt lowercase file
write/append %test.txt " "
]
]
----- Original Message -----
From: "mechtn" <[mechtn--tkweb--net]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, October 14, 2001 12:12 AM
Subject: [REBOL] dir to a text file
> Can anyone tell me how i could dir and save it in a text file with ONLY
the file names in that directory on seperate lines.. Or tell me if its
possible and what i'd need to use.. Thanks!