调用filecopy的问题..问是返回-1..源文件不能打开?
用api copyfile也出错返回0..
string ls_source = 'f:\abc.txt'
string ls_target = 'e:\'
integer li_rc
li_rc = filecopy(ls_source , ls_target , false)
li_rc 返回 -1 出错 pb帮助是源文件不能打开? 'f:\abc.txt'-这个文件绝对存在
调用
Function ulong CopyFile(ref string lpExistingFileName,ref string lpNewFileName,ulong bFailIfExists) LIBRARY "kernel32.dll" ALIAS FOR "CopyFileA"
li_rc = CopyFile(ls_source , ls_target , 0)
li_rc 返回 0 出错