国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

使用PB調用API自動更新(非FTP模式)(七、下載代碼)

2024-07-21 02:09:53
字體:
來源:轉載
供稿:網友

七、下載代碼

string gs_copyserver1
string gs_copyserver2
string gs_copyserver3
string ls_path
string ls_mypath
long ll_count = 0

gs_copyserver1    = profilestring("autodown.ini","downpath","copyserver1","")
gs_copyserver2    = profilestring("autodown.ini","downpath","copyserver2","")
gs_copyserver3    = profilestring("autodown.ini","downpath","copyserver3","")

st_ts.text = '正在檢查需要更新軟件的數量...'
ls_path = gs_copyserver1
ll_count = f_connect_copycount(ls_path,lb_files1,lb_files2,lb_files3)
if ll_count = -1 then
 ls_path = gs_copyserver2
 ll_count = f_connect_copycount(ls_path,lb_files1,lb_files2,lb_files3)
 if ll_count = -1 then
  ls_path = gs_copyserver3
  ll_count = f_connect_copycount(ls_path,lb_files1,lb_files2,lb_files3)
  if ll_count = -1 then
   st_ts.text = '正在檢查是否需要更新軟件版本...'
   ls_path = f_connect_copyserver()
   if ls_path = '' then
    messagebox('連接錯誤!','無法連接服務器!軟件不能運行!',stopsign!)
    //close(this)
    return
   end if
  end if
 end if
end if

//messagebox('',ls_path)ls_path<> ''
if ll_count = -1 then
 st_ts.text = '正在檢查需要更新軟件的數量...'
 ll_count = f_connect_copycount(ls_path,lb_files1,lb_files2,lb_files3)
end if
if ll_count = -1 then
 messagebox('連接錯誤!','無法連接服務器!軟件不能運行!',stopsign!)
 close(this)
 return
end if
if ll_count = 0 then
 st_ts.text = '正在啟動主程序...'
 
else
 st_ts.text = '正在更新軟件版本...'
 choose case f_connect_copyfile(ls_path,hpb_1,ll_count,lb_files1,lb_files2,lb_files3)
  case 1
   st_ts.text = '正在啟動主程序...'
   
  case 2 //啟動參數不同,以便賦值更新程序
   st_ts.text = '正在啟動主程序...'
   
 end choose
end if
string ls_file
ls_file = gs_application_path + '/xxxxx.exe qqaazzwwss'
run(ls_file)
//close(this)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 白玉县| 嵊泗县| 广东省| 永新县| 巴楚县| 泾阳县| 洛宁县| 阜南县| 察隅县| 江陵县| 宝兴县| 玛沁县| 太仆寺旗| 娄烦县| 松阳县| 黔江区| 斗六市| 石林| 万源市| 噶尔县| 比如县| 长沙市| 佳木斯市| 柳林县| 富蕴县| 瓦房店市| 乐至县| 定西市| 吉林省| 武义县| 瑞安市| 海阳市| 灌阳县| 县级市| 分宜县| 扶余县| 河间市| 永丰县| 鄢陵县| 大邑县| 娱乐|