|
-
November 4th, 1999, 08:58 AM
#1
CopyFile API function
CopyFile function fail if I use True for the
last parameter. The file that I try to overwrite
is a .xls file and is not write protected.
CopyFile(sSourcePath, sDestination, false)
Is there a beter way to copy a file?
Is there any VB functions?
thks!
Alex!
-
November 4th, 1999, 09:02 AM
#2
Re: CopyFile API function
vb has a Filecopy function
FileCopy source, target
-
November 4th, 1999, 09:21 AM
#3
Re: CopyFile API function
As I understand FileCopy is going to generate an
error if it is unsuccessful?
Thnks!
-
November 4th, 1999, 09:23 AM
#4
Re: CopyFile API function
yes, it does.
Trap the error via On Error...
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
|