Re: Install error

new topic     » goto parent     » topic index » view thread      » older message » newer message

> OK, I'll try that. Or might C:\progra~1 work instead? (it does with some other
> programs that don't like that space). I prefer not to install anything directly
> in C:\, if I can avoid it.

I would realy urge you to simply use C:\EUPHORIA. I always think of
the "Program Files" directory as a place for Programs, not a
Programming language. Borland installs to C:\Borland. Euphoria
installs to C:\EUPHORIA, etc..

> I assume this is only the case with Euphoria itself, not with the programs you
> create with it?

You're kinda contradicting yourself there. Any problem that Euphoria
may have, would trickle down into your app, wouldn't it?

Here's another example:
sequence cmd
    cmd = command_line()

-- ex myapp.ex Program Files
--     cmd[1] = "C:\EUPHORIA\BIN\EX.EXE"
--     cmd[2] = "myapp.ex"
--     cmd[3] = "Program"
--     cmd[4] = "Files"

-- ex myapp.ex "Program Files"
--     cmd[1] = "C:\EUPHORIA\BIN\EX.EXE"
--     cmd[2] = "myapp.ex"
--     cmd[3] = "Program Files"


As you can see, space acts a a delimiter when it is not in quotes. So
this may cause an issue in your apps if you don't watch for it. I
always to something like this:

sequence file_to_run

--  file_to_run = whatever...

    if find( ' ', file_to_run ) then    -- does file_to_run contain a space?
        file_to_run = '"' & file_to_run & '"'    -- wrap it in quotes
    end if

    -- run the file
    system( "ex " & file_to_run, 2 )


~Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu