[REBOL] Re: Making a new dir
From: ryanc:iesco-dms at: 27-Jun-2001 16:35
The root path in a PC (windows box) kinda fixed, example:
>> change-dir %/ list-dir
/a/ /c/ /d/ /l/ /m/ /p/ /s/ /w/ /x/ /y/
>>
These correspond generally to hardware drive letters and network shares.
Directories cannot be made here. I guess a rough equivelent would be:
drawer: %/c/TSE-Data
IF NOT EXISTS? drawer [ MAKE-DIR drawer ]
You might using indirect paths (sub-paths from where the program was initiated)
instead.
--Ryan
Donald Dalley wrote:
> Hi, Rebols:
>
> I use a couple of lines, with my Amiga, to make a new directory:
>
> ; Create a drawer, if one does not exist
> drawer: %/SD0/TSE-Data
> IF NOT EXISTS? drawer [ MAKE-DIR drawer ]
>
> Why does this not work using a PC?
> The real PC path is slightly different, but essentially the same.
> I tried using backslashes, but that did not work, either. It shouldn't matter.
>
> --
>
> ---===///||| Donald Dalley |||\\\===---
> The World of AmiBroker Support
> http://webhome.idirect.com/~ddalley
> UIN/ICQ#: 65203020
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400