四.统计复制文件数量函数f_connect_copycount
需要控件:listbox(3个) 【程序编程相关:Service Station With】 【推荐阅读:使用HttpUnit进行集成测试】返回值:需要下载的文件个数. 【扩展信息:c#中在DataGrid里创建一个弹出式】 global type f_connect_copycount from function_object end typeforward prototypes
global function integer f_connect_copycount (string as_path, listbox lb_filecopy1, listbox lb_filecopy2, listbox lb_filecopy3) end prototypesglobal function integer f_connect_copycount (string as_path, listbox lb_filecopy1, listbox lb_filecopy2, listbox lb_filecopy3);
string ls_directorya1,ls_directorya2
string ls_filename,ls_filels_directorya1 = as_path
ls_directorya2 = gs_application_pathstring ls_directoryb1,ls_directoryb2
string ls_directoryc1,ls_directoryc2string ls_filename1,ls_filename2
long ll_filecounta1,ll_filecounta2
long ll_filecountb1,ll_filecountb2 long ll_filecountc1,ll_filecountc2long ll_cnt1
long ll_cnt2 long ll_cnt3s_filetime sf_createtime1,sf_createtime2
s_filetime sf_accesstime1,sf_accesstime2 s_filetime sf_writetime1,sf_writetime2s_win32_find_data ss_file1,ss_file2
long ll_filehandle1,ll_filehandle2long ll_k
ls_file = ls_directorya1 + ´\*.*´
if not lb_filecopy1.dirlist(ls_file, 0+1+2+16+32) then return -1 end ifll_filecounta1 = lb_filecopy1.totalitems()
ll_k = 0 ... 下一页