Foxtable(狐表)用户栏目专家坐堂 → IP地址PING不通为什么不强制退出?


  共有3713人关注过本帖平板打印复制链接

主题:IP地址PING不通为什么不强制退出?

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


加好友 发短信
等级:四尾狐 帖子:884 积分:7061 威望:0 精华:0 注册:2013/3/5 8:42:00
IP地址PING不通为什么不强制退出?  发帖心情 Post By:2014/2/15 12:09:00 [只看该作者]

Dim ipFile As String = e.ProjectPath & "ip.txt"
If e.Name = "c2" Then
    If Filesys.FileExists(ipFile) Then
        Dim ip As String = FileSys.ReadAllText(ipFile)
       
        If TryConnectHost(ip) Then
            If Network.Ping(ip) Then
                msgbox(ip)
                bscrmurl=ip
                e.ConnectionString = e.ConnectionString.Replace("cc",ip)
               
            Else
                Messagebox.Show("无法链接到服务器,请核对服务器地址")
                basemainform.close()
                Syscmd.Project.Exit(False) 

                  ‘运行到这个地方以后,为什么不强制退出,还继续运行,各位给看一下

            End If
           
        End If 

    Else
        messagebox.show("数据库路径文件不存在,请联系管理员")
    End If
End If


 回到顶部