Foxtable(狐表)用户栏目专家坐堂 → 做的项目远程升级,出现Central dir not found。怎么解决


  共有2567人关注过本帖树形打印复制链接

主题:做的项目远程升级,出现Central dir not found。怎么解决

帅哥哟,离线,有人找我吗?
dwang32
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:13 积分:173 威望:0 精华:0 注册:2016/6/16 9:29:00
做的项目远程升级,出现Central dir not found。怎么解决  发帖心情 Post By:2016/9/8 8:59:00 [显示全部帖子]

做的项目远程升级,出现Central dir not found。怎么解决

 回到顶部
帅哥哟,离线,有人找我吗?
dwang32
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:13 积分:173 威望:0 精华:0 注册:2016/6/16 9:29:00
  发帖心情 Post By:2016/9/8 9:56:00 [显示全部帖子]

Dim updatepath As String

updatepath ="http://www1.mingdaltd.com/download"

RemoteUpdate=True

Network.DownloadFile(updatepath & "/update.txt",ProjectPath &"update.txt")

If Vars("updatedate") <> FileSys.ReadAllText(ProjectPath & "update.txt") Then

    MessageBox.Show("服务器上版本时间为" & FileSys.ReadAllText(ProjectPath & "update.txt"))

    Network .DownloadFile(updatepath & "/update.zip",ProjectPath &"update.zip" ,"","",True,60000,True)

    Dim zip As New ZipFile

    zip.Open( ProjectPath & "update.zip")

    zip.Extractall(ProjectPath )

    zip.Close()

    MessageBox.Show("更新完成")

    Vars("updatedate") = FileSys.ReadAllText(ProjectPath & "update.txt")

    Syscmd.Project.Open(ProjectFile)

End If

 

If FileSys.FileExists(ProjectPath & "update.zip") Then '如果指定的文件存在

    FileSys.DeleteFile(ProjectPath & "update.zip",2,2) '则彻底删除之

End If

If FileSys.FileExists(ProjectPath & "update.txt") Then '如果指定的文件存在

    FileSys.DeleteFile(ProjectPath & "update.txt",2,2) '则彻底删除之

End If


 回到顶部