Making a new dir
[1/6] from: ddalley:idirect at: 27-Jun-2001 16:50
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
[2/6] 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:
<<quoted lines omitted: 13>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400
[3/6] from: alekk::obywatel::pl at: 28-Jun-2001 2:32
----- Original Message -----
From: "Donald Dalley" <[ddalley--idirect--com]>
To: "REBoL Mail List" <[rebol-list--rebol--com]>
Sent: Wednesday, June 27, 2001 6:50 PM
Subject: [REBOL] Making a new dir
> Hi, Rebols:
> I use a couple of lines, with my Amiga, to make a new directory:
<<quoted lines omitted: 5>>
> http://webhome.idirect.com/~ddalley
> UIN/ICQ#: 65203020
try just %//tse-data
(User Guide 11-4)
Aleksander K.
[alekk--obywatel--pl]
[4/6] from: mario:cassani:icl at: 28-Jun-2001 8:54
Hi Donald,
> I use a couple of lines, with my Amiga, to make a new directory:
> ; Create a drawer, if one does not exist
<<quoted lines omitted: 4>>
> I tried using backslashes, but that did not work, either. It
> shouldn't matter.
I use this code with no problem both on Win9x and WinNT and
I envy you for still having a (not burned) Amiga...
newdir: %/c/test/new/directory/path
if not exists? newdir [
make-dir/deep newdir
]
Greetings
Mario
[5/6] from: ddalley:idirect at: 28-Jun-2001 9:01
Hi, Mario:
On 28-Jun-01, Cassani Mario wrote:
> I envy you for still having a (not burned) Amiga...
Actually, I have 5, all alive; 3 are still active and networked.
The PC is also emulating the Amiga, so the Amiga can't die.
Two use REBOL. ;^)
> newdir: %/c/test/new/directory/path
> if not exists? newdir [
> make-dir/deep newdir
Yes, the problem was using a given name, instead of its drive letter.
Silly me. It seems Windows does not like that. Thanks.
--
---===///||| Donald Dalley |||\\\===---
The World of AmiBroker Support
http://webhome.idirect.com/~ddalley
UIN/ICQ#: 65203020
[6/6] from: ddalley:idirect at: 28-Jun-2001 23:19
Hi, Ryan:
Whoops! This didn't get sent out in order.
On 27-Jun-01, Ryan Cole wrote:
> The root path in a PC (windows box) kinda fixed, example:
> >> change-dir %/ list-dir
<<quoted lines omitted: 3>>
> drawer: %/c/TSE-Data
> IF NOT EXISTS? drawer [ MAKE-DIR drawer ]
Aha! I was using a drive's "given name", not its device "letter".
I changed it and it now works. Thanks!
Lesson learned?
Windows doesn't even know its own drive names.
--
---===///||| Donald Dalley |||\\\===---
The World of AmiBroker Support
http://webhome.idirect.com/~ddalley
UIN/ICQ#: 65203020
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted