应该设置在AfterOpenProject:
If Network.Ping("20.10.102.10") Then UpdatePath = "ftp://ppp:123456@20.10.102.10/lyxx/"ElseIf Network.Ping("192.168.1.10") Then UpdatePath = "ftp://ppp:123456@192.168.1.10/lyxx/"End If