[REBOL] Re: can't call notepad
From: compkarori:gm:ail at: 14-May-2008 22:38
You don't even need the notepad there
call "c:\rebol\fred.txt"
will bring up the default editor
On Wed, May 14, 2008 at 10:04 PM, Gabriele Santilli
<santilli.gabriele-gmail.com> wrote:
> On Wed, May 14, 2008 at 9:35 AM, Anton Rolls <anton-wilddsl.net.au> wrote:
>
>> Instead, you could use string! (as you have) for Windows local paths,
>> or convert rebol file! types to Windows local paths.
>> Eg.
>>
>> call rejoin ["notepad.exe " "c:\rebol\fred.txt"]
>
> Actually, CALL can do the conversion automatically when you use a block!:
>
>>> call/console ["echo" %/c/file.txt]
> c:\file.txt
> == 0
>>> call/console ["echo" %/c/file with spaces.txt]
> "c:\file with spaces.txt"
> == 0
>
> Regards,
> Gabriele.
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
Graham Chiu
http://www.synapsedirect.com
Synapse - the use from anywhere EMR.