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

Hi Dan,

Can you use the Win API here?

Take care,
Al

E boa sorte com sua programacao Euphoria!


My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

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

Search



Quick Links

User menu

Not signed in.

Misc Menu