Welcome Guest!
 EUforum
 Previous Message All Messages Next Message 
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.
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.