Re: Install error
- Posted by Rich <ra at zantra.dk> Nov 30, 2004
- 588 views
Greg Haberek wrote: > > > 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.</font></i> > > 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.. Well I prefer having everything that can run under "program files" if possible. Each to his own, I guess. > > 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? > Not necessarily, that depends on what level the problem exist on. In this case it might simply be a problem with the installer that's used for Euphoria, for example (which could be written in another language). > Here's another example: > }}} <eucode> > > 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" > > </eucode> {{{ > > 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: > > }}} <eucode> > 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 ) > > </eucode> {{{ OK, I'm not enough into the language yet to fully understand what you're saying here, though I think I get the idea. I'll take a look at it later. :) Thanks! Rich