try ...
test: read %/d/whatever/file.txt
or you could try this home grown function (one of my earliest REBOL
utilities)
cvt-win-path: func [
{Convert a Windows pathname (e.g., C:\Windows\Desktop) to REBOL path}
path [ string! ]
/local tmp
] [
; convert backslashes to slashes
tmp: replace/all path {\} {/}
; check if drive is specified
if ((length? tmp) > 2) [
if (second tmp) == #":" [
tmp: join {/} [ (first tmp) (next next tmp) ]
]
]
; TODO - handle UNC names ... i.e., \\machine\path
return to-file :tmp
]
then use ...
test: read cvt-win-path "d:\whatever\file.txt"
Hope this helps. I use this when I'm parsing files generated by other
programs (e.g., DIR /S /B)
-- Michael Cornelio
The Cornelio Group
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 18, 2000 11:51 AM
Subject: [REBOL] accessing files on other partitions
>
> On Win32, what's the syntax to access a file in an other partition?
>
> If, I'm on f:
>
> then
>
> test: read %d:\whatever\file.txt
>
> fails
>
> -------
> Regards, Graham Chiu
> gchiu<at>compkarori.co.nz
> http://www.compkarori.com/dynamo - The Homebuilt Dynamo
> http://www.compkarori.com/dbase - The dBase bulletin
>