Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

How to get directory list

 [1/8] from: ale870::gmail at: 1-Jun-2006 16:53


Hello, usually I use "list-dir" to get directory list. How can I get it to store them in a variable? E.g.: myDir: list-dir %/c/temp Thank you! One question more: how can I grab console contents without using echo command (it saves data into file, but I need to store data in a variable, block, etc...). Thank you again! :-) --Alessandro

 [2/8] from: massung:g:mail at: 1-Jun-2006 10:04


Give you a hint...
>> print mold :list-dir
:-) Jeff M. On 6/1/06, Alessandro Manotti <ale870-gmail.com> wrote:
> Hello, usually I use "list-dir" to get directory list. > How can I get it to store them in a variable?
<<quoted lines omitted: 9>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- massung-gmail.com

 [3/8] from: ale870:g:mail at: 1-Jun-2006 17:13


Thank you :-) I will start to study. --Alessandro On 6/1/06, Jeff Massung <massung-gmail.com> wrote:

 [4/8] from: SunandaDH:aol at: 1-Jun-2006 21:07


Alessandro:
> Hello, usually I use "list-dir" to get directory list.
myDir: list-dir %/c/temp/ will populate mydir as a block containing the file and folder names in /c/temp/ Sunanda

 [5/8] from: gabriele:colellachiara at: 2-Jun-2006 10:17


Hi Alessandro, On Thursday, June 1, 2006, 4:53:28 PM, you wrote: AM> myDir: list-dir %/c/temp myDir: read %/c/temp/ (notice the ending /) Regards, Gabriele. -- Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/ Colella Chiara software division --- http://www.colellachiara.com/

 [6/8] from: gabriele::colellachiara::com at: 2-Jun-2006 10:17


Hi Jeff, On Thursday, June 1, 2006, 5:04:27 PM, you wrote:
>>> print mold :list-dir
source list-dir Use the SOURCE, Luke! ;-) Regards, Gabriele. -- Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/ Colella Chiara software division --- http://www.colellachiara.com/

 [7/8] from: massung:gma:il at: 2-Jun-2006 8:56


Yeah, call it a brain fart. I knew there was an easier way, just couldn't think of it at the moment. :-) Jeff M. On 6/2/06, Gabriele Santilli <gabriele-colellachiara.com> wrote:
> Hi Jeff, > On Thursday, June 1, 2006, 5:04:27 PM, you wrote:
<<quoted lines omitted: 9>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- massung-gmail.com

 [8/8] from: ale870::gmail::com at: 2-Jun-2006 16:11


I tried with
>>a: read %/c/temp/
it works great! Thank you! And thank you to the suggestions supplied by everyone! --Alessandro On 6/2/06, Jeff Massung <massung-gmail.com> wrote:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted