Windoze newfangled filenames workaround

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

I dunno who else has tried this workaround for paths containing spaces etc, 
but since I have not seen it mentioned,
here is my code snippet to copy a file, using the KISS principle...

sequence dquote, fromname, toname, cmd
dquote = {34}   -- double-quote character
fromname = "C:\\Program Files\\mylib\\from.file"
toname = "C:\\Program Files\\mylib\\to.file"
cmd = "copy " &dquote &fromname &dquote & " "  &toname  &dquote
system(cmd,2)

Of course, you could use the win32lib routine to do the copy;
this is just an example.

Cheers
Alan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu