Jaco de Groot <[EMAIL PROTECTED]> wrote: > Kees Jongenburger wrote: > >>- cmd = "text " + cmd.substring(0, secondcomma) + > >>" " + ((String) cmd).substring( secondcomma + 1).replace( '\'', '"'); > > > >Isn't it possible to use the args of the exec class so we don't need to > >escape? > > I think the arg "text 100,100 'some text'" needs to be send to ImageMagick > as one argument. I did several tests, but I'm not sure if I tested sending > it as three arguments. The problem was that for some reason the single > quotes where escaped to double quotes. This didn't give problems on Linux, > but it did on Windows.
The question is now, for which reason? I don't recall it either, but we could wonder if now something else broke? Perhaps it is a left-over from the time that no array with arguments was used. Michiel -- Michiel Meeuwissen Mediacentrum 140 H'sum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] ()
