Welcome Guest!
 EUforum
 Previous Message All Messages Next Message 
Re: copy file to folder that has spaces in name  Derek Parnell
 Jun 25, 2008 12:12 PDT 


posted by: Derek Parnell <ddparnell at bigp?nd.?om>

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

Does this work ????

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

--
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell
	
 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.