RENAME problem: directories with spaces?

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

Juergen's suggestion for using "rename" with "system" command,  
sequence myvar
myvar = "\"the old.txt\" \"the new.txt\""    -- or whatever is required
system("rename " & myvar, 2)

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu