Foxtable(狐表)用户栏目专家坐堂 → 在线升级非法字符


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

主题:在线升级非法字符

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


加好友 发短信
等级:四尾狐 帖子:969 积分:8532 威望:0 精华:0 注册:2015/8/12 16:28:00
在线升级非法字符  发帖心情 Post By:2018/6/28 11:44:00 [只看该作者]

这个问题出现第二次了,第一次是另外一个出现有$的乱码,这次都仔细一个个文件看了,没有乱码,不知为何还出现。
 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:update1.zip

Dim loc As String=updatepath
Dim uptime As Date

If FileSys.FileExists(loc & "\update.txt")=False Or FileSys.FileExists(loc & "\update2.zip")=False Or FileSys.FileExists(loc & "\update1.zip")=False  Then
    MessageBox.Show("无法连接到升级文件的文件夹,没有查找到升级文件,你的电脑可能掉线或不能登录公司G盘")
MessageBox.Show(loc & "\update.txt" & loc & "\update2.zip" & loc & "\update1.zip")
    System.Diagnostics.Process.GetCurrentProcess().Kill
End If

Dim te As String = FileSys.ReadAllText(loc & "\update.txt")
te=te.Remove(te.IndexOf("|"))
uptime=CDate(te)

If uptime> PublishDate Then
    If filesys.DirectoryExists(ProjectPath & "\UpdateTemporary") Then
        FileSys.DeleteDirectory(ProjectPath & "\UpdateTemporary",2,2)
    End If
    Network.DownloadFile(loc & "\update2.zip",ProjectPath & "UpdateTemporary\update2.zip","","",True,20000,True)
    Network.DownloadFile(loc & "\update1.zip",ProjectPath & "UpdateTemporary\update1.zip","","",True,20000,True)
    Network.DownloadFile(loc & "\update.txt",ProjectPath & "UpdateTemporary\update.txt","","",True,20000,True)
    If FileSys.FileExists(ProjectPath & "UpdateTemporary\update.txt") AndAlso FileSys.FileExists(ProjectPath & "UpdateTemporary\update2.zip") AndAlso FileSys.FileExists(ProjectPath & "UpdateTemporary\update1.zip") Then
        UpdatePath = ProjectPath & "UpdateTemporary"
        RemoteUpdate = False
        Syscmd.Project.Update(False,True)
        Return
    Else
        MessageBox.Show("下载升级文件异常,无法下载升级包,请尝试重启系统或者检查网络.")
        System.Diagnostics.Process.GetCurrentProcess().Kill
    End If
End If


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


加好友 发短信
等级:四尾狐 帖子:969 积分:8532 威望:0 精华:0 注册:2015/8/12 16:28:00
  发帖心情 Post By:2018/6/28 13:05:00 [只看该作者]

搞定了。一个图标没有仔细看到。有乱码

 回到顶部