Welcome Guest!
 EUforum
 Previous Message All Messages Next Message 
Re: copy file to folder that has spaces in name  CChris
 Jun 26, 2008 01:00 PDT 


posted by: CChris <christian.cuvier at ag??culture.gouv.fr>

llamedoso wrote:
 

Hi,
I want to do the following:

system("copy c:\\mystuff\\afile.txt c:\\windows\\documents and settings\\administrator\\desktop")

This fails because of the spaces in documents and settings.
Have searched the forum without any luck.
Is there a solution?
Thank you

system("copy \"c:\\mystuff\\afile.txt\" \"c:\\windows\\documents and settings\\administrator\\desktop\"")

At the console prompt, you'd surround the file paths with quotes, so you need to insert double quotes into the Eu string. That's what \" syands for.

CChris
	
 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.