|
Re: copy file to folder that has spaces in name
|
llamedoso
|
Jun 26, 2008 12:14 PDT
|
posted by: llamedoso <jimtereza96 at ?as?mail.fm>
Thanks everyone,
However this didn't work:-
system("copy \"c:\\jimstuff\\addresses.txt\" \"c:\\windows\\documents and settings\\administrator\\desktop\"",2)
Nor did this:-
system("copy \"c:\\jimstuff\\addresses.txt\" \"c:\\windows\\documents and settings\\administrator\\desktop\"",2)
Managed to figure out an answer myself, the following DOES work:-
system(sprintf("copy \"%s\" \"%s\"",{"c:\\jimstuff\\addresses.txt","c:\\documents and settings\\administrator\\desktop"}),2)
Thank you.
|
|
 |
|