471,092 Members | 1,029 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

calling external files

Hi its been a few years but i am sure i have done this before. i can easly call the file using


but if the path line becomes more complicated it stops because of the extra "" marks.

strcpy(Path,"xcopy "C:\\temp\\temp2.lnk" "C:\\Documents and Settings\\All Users\\Desktop\\" /Y /S /Q /C /K /R /d");

can someone tell me the way round this.
Jul 11 '06 #1
1 1948
9,065 Expert Mod 8TB
Easy in the same way that you have escaped \ to \\ inside the string escape " to \"

Expand|Select|Wrap|Line Numbers
  1. strcpy(Path,"xcopy \"C:\\temp\\temp2.lnk\" \"C:\\Documents and Settings\\All Users\\Desktop\\\" /Y /S /Q /C /K /R /d");
Jul 11 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Sivakumar Shanmugam | last post: by
16 posts views Thread by teju | last post: by
2 posts views Thread by =?Utf-8?B?YmFzaA==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.