|
-
July 10th, 2010, 07:05 PM
#1
The CopyFile Function Error 3
I seem to get an CopyFile error 3 with this code. FS means File Size (it checks file size)
fname2 and 3 are both strings.
Code:
fname2 = path + "\\" + data.cFileName;
fname3 = "L" + fname2.erase(0,1);
fname2 = "C" + fname2;
if (FileExists(fname3) == false){
CopyFile(fname2.c_str(),fname3.c_str(),0);
}
else {
if (FS(fname3) < FS(fname2)) {
CopyFile(fname2.c_str(),fname3.c_str(),0);
}
}
Last edited by cabledevin; July 11th, 2010 at 09:04 AM.
-
July 11th, 2010, 12:54 PM
#2
Re: The CopyFile Function Error 3
It seems you have to fix something. Let's start with your communication skills. You were supposed to provide sufficient introduction information and ask your question. "I seem" never was a question. 
Besides,
Code:
D:\Temp>net helpmsg 3
The system cannot find the path specified.
Does this ring any bells?
Last edited by Igor Vartanov; July 11th, 2010 at 01:06 PM.
Best regards,
Igor
-
July 13th, 2010, 07:25 AM
#3
Re: CopyFile, file size
My Apologies. That code worked fine, at least I think it did. The program entirely works now. Thanks for the help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|