Re: RENAME problem: directories with spaces?

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

Dan Moyer wrote:
> 
> 
> Juergen's suggestion for using "rename" with "system" command,  
> }}}
<eucode>
> sequence myvar
> myvar = "\"the old.txt\" \"the new.txt\""    -- or whatever is required
> system("rename " & myvar, 2)
> </eucode>
{{{

> seems like it should have worked, but didn't; I get an error about
>  "bad command format", but when I make it print out, it looks fine, except:
>  
> 
> the path to the file(s) includes more than one directory with SPACES in them,
> which I think is the problem, and I vaguely remember that there's a "trick"
> to making directories with spaces work, but I don't rember what it IS.
> 
> Is there such a trick?  (& what is it if there is)
> (in the code example above, I put the path to the file in front of myvar)
> 
> Dan

Hello Dan,

sorry to be late, but I met a similar problem in downloading filenames 
with spaces inside, like "FILE Name.ext". Te result was a "Bad Request"
page answer by the server, as the system searched just the file "FILE"
and ignores the whole " Name.ext".

The trick there consisted in replacing the spaces with "%20", i.e.
"FILE%20Name.ext". Don't have time to test this now, but this answer 
can be useful however, or introduce to something like, so here it is.

antonio

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

Search



Quick Links

User menu

Not signed in.

Misc Menu