|
@@ -20,8 +20,16 @@ Public Class HX_PGS_UPDATE
|
20
|
20
|
'-----------------------IP比對----------------------------------------------------------------------------------------------------------------------------------------------------
|
21
|
21
|
伺服器區域_cb.Text = "公司雲端"
|
22
|
22
|
End Sub
|
|
23
|
+ Private Sub 伺服器區域_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_cb.SelectedIndexChanged
|
|
24
|
+ '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
|
|
25
|
+ If SQL_連線狀態模組1.ConnectTest1("103.231.201.230, 2433") = True Then
|
|
26
|
+ 登入人IP = "103.231.201.230,2433"
|
|
27
|
+ Else
|
|
28
|
+ 登入人IP = "103.144.143.182,2433"
|
|
29
|
+ End If
|
|
30
|
+ End Sub
|
23
|
31
|
Private Sub HX_PGS_UPDATE_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
24
|
|
- IP比對() : 資料數 = 100
|
|
32
|
+ IP比對() : 資料數 = 86
|
25
|
33
|
MyModule1.進度條() : If Strings.Left(伺服器區域_cb.Text, 2) = "公司" Then : SQL_連線字串_正式() : Else : SQL_連線字串_測試() : End If
|
26
|
34
|
MyModule1.進度條() : SQL_FTP伺服器登入位置()
|
27
|
35
|
MyModule1.進度條() : If dr.Read() Then : Target = dr("FTP地址") : FTP帳號 = dr("FTP帳號") : FTP密碼 = dr("FTP密碼") : FTP物理位置 = dr("FTP物理位置") : End If : conn.Close()
|
|
@@ -40,128 +48,157 @@ Public Class HX_PGS_UPDATE
|
40
|
48
|
MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.exe") : End If
|
41
|
49
|
MyModule1.進度條() : If File.Exists(Str + "\HX01.docx") Then : File.Delete(Str + "\HX01.docx") : End If
|
42
|
50
|
MyModule1.進度條() : If File.Exists(Str + "\PGS01.docx") Then : File.Delete(Str + "\PGS01.docx") : End If
|
|
51
|
+ MyModule1.進度條() : If File.Exists(Str + "\LIN HSING HAO.txt") Then : File.Delete(Str + "\LIN HSING HAO.txt") : End If
|
43
|
52
|
MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe", Str + "\HX-PGS-ERP-SYS.exe")
|
44
|
53
|
MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX01.docx", Str + "\HX01.docx")
|
45
|
54
|
MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PGS01.docx", Str + "\PGS01.docx")
|
|
55
|
+ MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "LIN HSING HAO.txt", Str + "\LIN HSING HAO.txt")
|
|
56
|
+ '--- 比對下載---------------------------------------------------------------------------------------------------------------------------
|
|
57
|
+ MyModule1.進度條()
|
|
58
|
+ If Dir(Str + "\Theme", vbDirectory) <> "" Then : Else : MyModule1.進度條() : MkDir(Str + "\Theme") : End If
|
|
59
|
+ MyModule1.進度條() : If File.Exists(Str + "\Theme\excel_chinese.xml") Then : Else
|
|
60
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "excel_chinese.xml", Str + "\Theme\excel_chinese.xml") : End If
|
|
61
|
+ MyModule1.進度條() : If File.Exists(Str + "\Theme\excel_english.xml") Then : Else
|
|
62
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "excel_english.xml", Str + "\Theme\excel_english.xml") : End If
|
|
63
|
+ MyModule1.進度條() : If File.Exists(Str + "\Theme\TelerikMetro_Chinese.tssp") Then : Else
|
|
64
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "TelerikMetro_Chinese.tssp", Str + "\Theme\TelerikMetro_Chinese.tssp") : End If
|
|
65
|
+ MyModule1.進度條() : If File.Exists(Str + "\Theme\word_chinese.xml") Then : Else
|
|
66
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "word_chinese.xml", Str + "\Theme\word_chinese.xml") : End If
|
|
67
|
+ MyModule1.進度條() : If File.Exists(Str + "\Theme\word_english.xml") Then : Else
|
|
68
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "word_english.xml", Str + "\Theme\word_english.xml") : End If
|
46
|
69
|
'--- 比對下載---------------------------------------------------------------------------------------------------------------------------
|
47
|
70
|
MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-Message.exe") Then : Else
|
48
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-Message.exe", Str + "\HX-PGS-Message.exe") : End If
|
|
71
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-Message.exe", Str + "\HX-PGS-Message.exe") : End If
|
|
72
|
+ MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-Message.exe") Then : Else
|
|
73
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-Message.exe", Str + "\HX-PGS-Message.exe") : End If
|
49
|
74
|
MyModule1.進度條() : If File.Exists(Str + "\Tran.exe") Then : Else
|
50
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Tran.exe", Str + "\Tran.exe") : End If
|
|
75
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Tran.exe", Str + "\Tran.exe") : End If
|
51
|
76
|
MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.pdb") Then : Else
|
52
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.pdb", Str + "\HX-PGS-ERP-SYS.pdb") : End If
|
|
77
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.pdb", Str + "\HX-PGS-ERP-SYS.pdb") : End If
|
53
|
78
|
MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.xml") Then : Else
|
54
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.xml", Str + "\HX-PGS-ERP-SYS.xml") : End If
|
|
79
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.xml", Str + "\HX-PGS-ERP-SYS.xml") : End If
|
55
|
80
|
MyModule1.進度條() : If File.Exists(Str + "\Interop.SHDocVw.dll") Then : Else
|
56
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Interop.SHDocVw.dll", Str + "\Interop.SHDocVw.dll") : End If
|
|
81
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Interop.SHDocVw.dll", Str + "\Interop.SHDocVw.dll") : End If
|
57
|
82
|
MyModule1.進度條() : If File.Exists(Str + "\AxInterop.MSHTML.dll") Then : Else
|
58
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.MSHTML.dll", Str + "\AxInterop.MSHTML.dll") : End If
|
|
83
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.MSHTML.dll", Str + "\AxInterop.MSHTML.dll") : End If
|
59
|
84
|
MyModule1.進度條() : If File.Exists(Str + "\AxInterop.SHDocVw.dll") Then : Else
|
60
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.SHDocVw.dll", Str + "\AxInterop.SHDocVw.dll") : End If
|
|
85
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.SHDocVw.dll", Str + "\AxInterop.SHDocVw.dll") : End If
|
61
|
86
|
MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe.config") Then : Else
|
62
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe.config", Str + "\HX-PGS-ERP-SYS.exe.config") : End If
|
|
87
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe.config", Str + "\HX-PGS-ERP-SYS.exe.config") : End If
|
63
|
88
|
MyModule1.進度條() : If File.Exists(Str + "\A.txt") Then : Else
|
64
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "A.txt", Str + "\A.txt") : End If
|
|
89
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "A.txt", Str + "\A.txt") : End If
|
65
|
90
|
MyModule1.進度條() : If File.Exists(Str + "\C.txt") Then : Else
|
66
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "C.txt", Str + "\C.txt") : End If
|
|
91
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "C.txt", Str + "\C.txt") : End If
|
67
|
92
|
MyModule1.進度條() : If File.Exists(Str + "\ch.txt") Then : Else
|
68
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "ch.txt", Str + "\ch.txt") : End If
|
|
93
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "ch.txt", Str + "\ch.txt") : End If
|
69
|
94
|
MyModule1.進度條() : If File.Exists(Str + "\DotNetBarcode.dll") Then : Else
|
70
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "DotNetBarcode.dll", Str + "\DotNetBarcode.dll") : End If
|
|
95
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "DotNetBarcode.dll", Str + "\DotNetBarcode.dll") : End If
|
71
|
96
|
MyModule1.進度條() : If File.Exists(Str + "\en.txt") Then : Else
|
72
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "en.txt", Str + "\en.txt") : End If
|
|
97
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "en.txt", Str + "\en.txt") : End If
|
73
|
98
|
MyModule1.進度條() : If File.Exists(Str + "\IdentityModel.dll") Then : Else
|
74
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "IdentityModel.dll", Str + "\IdentityModel.dll") : End If
|
|
99
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "IdentityModel.dll", Str + "\IdentityModel.dll") : End If
|
75
|
100
|
MyModule1.進度條() : If File.Exists(Str + "\IdentityModel.pdb") Then : Else
|
76
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "IdentityModel.pdb", Str + "\IdentityModel.pdb") : End If
|
|
101
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "IdentityModel.pdb", Str + "\IdentityModel.pdb") : End If
|
77
|
102
|
MyModule1.進度條() : If File.Exists(Str + "\IdentityModel.xml") Then : Else
|
78
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "IdentityModel.xml", Str + "\IdentityModel.xml") : End If
|
|
103
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "IdentityModel.xml", Str + "\IdentityModel.xml") : End If
|
79
|
104
|
MyModule1.進度條() : If File.Exists(Str + "\in.txt") Then : Else
|
80
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "in.txt", Str + "\in.txt") : End If
|
|
105
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "in.txt", Str + "\in.txt") : End If
|
81
|
106
|
MyModule1.進度條() : If File.Exists(Str + "\Newtonsoft.Json.dll") Then : Else
|
82
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Newtonsoft.Json.dll", Str + "\Newtonsoft.Json.dll") : End If
|
|
107
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Newtonsoft.Json.dll", Str + "\Newtonsoft.Json.dll") : End If
|
83
|
108
|
MyModule1.進度條() : If File.Exists(Str + "\Newtonsoft.Json.xml") Then : Else
|
84
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Newtonsoft.Json.xml", Str + "\Newtonsoft.Json.xml") : End If
|
|
109
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Newtonsoft.Json.xml", Str + "\Newtonsoft.Json.xml") : End If
|
85
|
110
|
MyModule1.進度條() : If File.Exists(Str + "\PInvoke.Windows.Core.dll") Then : Else
|
86
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PInvoke.Windows.Core.dll", Str + "\PInvoke.Windows.Core.dll") : End If
|
|
111
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PInvoke.Windows.Core.dll", Str + "\PInvoke.Windows.Core.dll") : End If
|
87
|
112
|
MyModule1.進度條() : If File.Exists(Str + "\PInvoke.Windows.Core.xml") Then : Else
|
88
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PInvoke.Windows.Core.xml", Str + "\PInvoke.Windows.Core.xml") : End If
|
|
113
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PInvoke.Windows.Core.xml", Str + "\PInvoke.Windows.Core.xml") : End If
|
89
|
114
|
MyModule1.進度條() : If File.Exists(Str + "\py-tran-log.txt") Then : Else
|
90
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "py-tran-log.txt", Str + "\py-tran-log.txt") : End If
|
|
115
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "py-tran-log.txt", Str + "\py-tran-log.txt") : End If
|
91
|
116
|
MyModule1.進度條() : If File.Exists(Str + "\System.Buffers.dll") Then : Else
|
92
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Buffers.dll", Str + "\System.Buffers.dll") : End If
|
|
117
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Buffers.dll", Str + "\System.Buffers.dll") : End If
|
93
|
118
|
MyModule1.進度條() : If File.Exists(Str + "\System.Buffers.xml") Then : Else
|
94
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Buffers.xml", Str + "\System.Buffers.xml") : End If
|
|
119
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Buffers.xml", Str + "\System.Buffers.xml") : End If
|
95
|
120
|
MyModule1.進度條() : If File.Exists(Str + "\System.Memory.dll") Then : Else
|
96
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Memory.dll", Str + "\System.Memory.dll") : End If
|
|
121
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Memory.dll", Str + "\System.Memory.dll") : End If
|
97
|
122
|
MyModule1.進度條() : If File.Exists(Str + "\System.Memory.xml") Then : Else
|
98
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Memory.xml", Str + "\System.Memory.xml") : End If
|
|
123
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Memory.xml", Str + "\System.Memory.xml") : End If
|
99
|
124
|
MyModule1.進度條() : If File.Exists(Str + "\System.Numerics.Vectors.dll") Then : Else
|
100
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Numerics.Vectors.dll", Str + "\System.Numerics.Vectors.dll") : End If
|
|
125
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Numerics.Vectors.dll", Str + "\System.Numerics.Vectors.dll") : End If
|
101
|
126
|
MyModule1.進度條() : If File.Exists(Str + "\System.Numerics.Vectors.xml") Then : Else
|
102
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Numerics.Vectors.xml", Str + "\System.Numerics.Vectors.xml") : End If
|
|
127
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Numerics.Vectors.xml", Str + "\System.Numerics.Vectors.xml") : End If
|
103
|
128
|
MyModule1.進度條() : If File.Exists(Str + "\System.Runtime.CompilerServices.Unsafe.dll") Then : Else
|
104
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Runtime.CompilerServices.Unsafe.dll", Str + "\System.Runtime.CompilerServices.Unsafe.dll") : End If
|
|
129
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Runtime.CompilerServices.Unsafe.dll", Str + "\System.Runtime.CompilerServices.Unsafe.dll") : End If
|
105
|
130
|
MyModule1.進度條() : If File.Exists(Str + "\System.Runtime.CompilerServices.Unsafe.xml") Then : Else
|
106
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Runtime.CompilerServices.Unsafe.xml", Str + "\System.Runtime.CompilerServices.Unsafe.xml") : End If
|
|
131
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Runtime.CompilerServices.Unsafe.xml", Str + "\System.Runtime.CompilerServices.Unsafe.xml") : End If
|
107
|
132
|
MyModule1.進度條() : If File.Exists(Str + "\System.Text.Encodings.Web.dll") Then : Else
|
108
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Text.Encodings.Web.dll", Str + "\System.Text.Encodings.Web.dll") : End If
|
|
133
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Text.Encodings.Web.dll", Str + "\System.Text.Encodings.Web.dll") : End If
|
109
|
134
|
MyModule1.進度條() : If File.Exists(Str + "\System.Text.Encodings.Web.xml") Then : Else
|
110
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Text.Encodings.Web.xml", Str + "\System.Text.Encodings.Web.xml") : End If
|
|
135
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Text.Encodings.Web.xml", Str + "\System.Text.Encodings.Web.xml") : End If
|
111
|
136
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadToastNotification.dll") Then : Else
|
112
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadToastNotification.dll", Str + "\Telerik.WinControls.RadToastNotification.dll") : End If
|
|
137
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadToastNotification.dll", Str + "\Telerik.WinControls.RadToastNotification.dll") : End If
|
113
|
138
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadToastNotification.xml") Then : Else
|
114
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadToastNotification.xml", Str + "\Telerik.WinControls.RadToastNotification.xml") : End If
|
|
139
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadToastNotification.xml", Str + "\Telerik.WinControls.RadToastNotification.xml") : End If
|
115
|
140
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.dll") Then : Else
|
116
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.dll", Str + "\Telerik.WinControls.SyntaxEditor.dll") : End If
|
|
141
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.dll", Str + "\Telerik.WinControls.SyntaxEditor.dll") : End If
|
117
|
142
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.xml") Then : Else
|
118
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.xml", Str + "\Telerik.WinControls.SyntaxEditor.xml") : End If
|
|
143
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.xml", Str + "\Telerik.WinControls.SyntaxEditor.xml") : End If
|
119
|
144
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadWebCam.dll") Then : Else
|
120
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadWebCam.dll", Str + "\Telerik.WinControls.RadWebCam.dll") : End If
|
|
145
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadWebCam.dll", Str + "\Telerik.WinControls.RadWebCam.dll") : End If
|
121
|
146
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadWebCam.xml") Then : Else
|
122
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadWebCam.xml", Str + "\Telerik.WinControls.RadWebCam.xml") : End If
|
|
147
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadWebCam.xml", Str + "\Telerik.WinControls.RadWebCam.xml") : End If
|
123
|
148
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.GridView.dll") Then : Else
|
124
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.GridView.dll", Str + "\Telerik.WinControls.GridView.dll") : End If
|
|
149
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.GridView.dll", Str + "\Telerik.WinControls.GridView.dll") : End If
|
125
|
150
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadMap.dll") Then : Else
|
126
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadMap.dll", Str + "\Telerik.WinControls.RadMap.dll") : End If
|
|
151
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadMap.dll", Str + "\Telerik.WinControls.RadMap.dll") : End If
|
127
|
152
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadMap.xml") Then : Else
|
128
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadMap.xml", Str + "\Telerik.WinControls.RadMap.xml") : End If
|
|
153
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadMap.xml", Str + "\Telerik.WinControls.RadMap.xml") : End If
|
129
|
154
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.GridView.xml") Then : Else
|
130
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.GridView.xml", Str + "\Telerik.WinControls.GridView.xml") : End If
|
|
155
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.GridView.xml", Str + "\Telerik.WinControls.GridView.xml") : End If
|
131
|
156
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.ChartView.dll") Then : Else
|
132
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.ChartView.dll", Str + "\Telerik.WinControls.ChartView.dll") : End If
|
|
157
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.ChartView.dll", Str + "\Telerik.WinControls.ChartView.dll") : End If
|
133
|
158
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.ChartView.xml") Then : Else
|
134
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.ChartView.xml", Str + "\Telerik.WinControls.ChartView.xml") : End If
|
|
159
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.ChartView.xml", Str + "\Telerik.WinControls.ChartView.xml") : End If
|
135
|
160
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.UI.dll") Then : Else
|
136
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.UI.dll", Str + "\Telerik.WinControls.UI.dll") : End If
|
|
161
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.UI.dll", Str + "\Telerik.WinControls.UI.dll") : End If
|
137
|
162
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.UI.xml") Then : Else
|
138
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.UI.xml", Str + "\Telerik.WinControls.UI.xml") : End If
|
|
163
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.UI.xml", Str + "\Telerik.WinControls.UI.xml") : End If
|
139
|
164
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.dll") Then : Else
|
140
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.dll", Str + "\Telerik.WinControls.dll") : End If
|
|
165
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.dll", Str + "\Telerik.WinControls.dll") : End If
|
141
|
166
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.xml") Then : Else
|
142
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.xml", Str + "\Telerik.WinControls.xml") : End If
|
|
167
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.xml", Str + "\Telerik.WinControls.xml") : End If
|
143
|
168
|
MyModule1.進度條() : If File.Exists(Str + "\TelerikCommon.dll") Then : Else
|
144
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "TelerikCommon.dll", Str + "\TelerikCommon.dll") : End If
|
|
169
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "TelerikCommon.dll", Str + "\TelerikCommon.dll") : End If
|
145
|
170
|
MyModule1.進度條() : If File.Exists(Str + "\MediaFoundation.dll") Then : Else
|
146
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "MediaFoundation.dll", Str + "\MediaFoundation.dll") : End If
|
|
171
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "MediaFoundation.dll", Str + "\MediaFoundation.dll") : End If
|
147
|
172
|
MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.MediaFoundation.dll") Then : Else
|
148
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.MediaFoundation.dll", Str + "\Telerik.Windows.MediaFoundation.dll") : End If
|
|
173
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.MediaFoundation.dll", Str + "\Telerik.Windows.MediaFoundation.dll") : End If
|
149
|
174
|
MyModule1.進度條() : If File.Exists(Str + "\Microsoft.Toolkit.Uwp.Notifications.dll") Then : Else
|
150
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Microsoft.Toolkit.Uwp.Notifications.dll", Str + "\Microsoft.Toolkit.Uwp.Notifications.dll") : End If
|
|
175
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Microsoft.Toolkit.Uwp.Notifications.dll", Str + "\Microsoft.Toolkit.Uwp.Notifications.dll") : End If
|
|
176
|
+ MyModule1.進度條() : If File.Exists(Str + "\SuperDataGrid.dll") Then : Else
|
|
177
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "SuperDataGrid.dll", Str + "\SuperDataGrid.dll") : End If
|
|
178
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.PdfViewer.dll") Then : Else
|
|
179
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.PdfViewer.dll", Str + "\Telerik.WinControls.PdfViewer.dll") : End If
|
|
180
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.PdfViewer.xml") Then : Else
|
|
181
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.PdfViewer.xml", Str + "\Telerik.WinControls.PdfViewer.xml") : End If
|
|
182
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RichTextEditor.dll") Then : Else
|
|
183
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RichTextEditor.dll", Str + "\Telerik.WinControls.RichTextEditor.dll") : End If
|
|
184
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RichTextEditor.xml") Then : Else
|
|
185
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RichTextEditor.xml", Str + "\Telerik.WinControls.RichTextEditor.xml") : End If
|
|
186
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Core.dll") Then : Else
|
|
187
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Core.dll", Str + "\Telerik.Windows.Documents.Core.dll") : End If
|
|
188
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Core.xml") Then : Else
|
|
189
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Core.xml", Str + "\Telerik.Windows.Documents.Core.xml") : End If
|
|
190
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.dll") Then : Else
|
|
191
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Fixed.dll", Str + "\Telerik.Windows.Documents.Fixed.dll") : End If
|
|
192
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.xml") Then : Else
|
|
193
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Fixed.xml", Str + "\Telerik.Windows.Documents.Fixed.xml") : End If
|
|
194
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.dll") Then : Else
|
|
195
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Zip.dll", Str + "\Telerik.Windows.Zip.dll") : End If
|
|
196
|
+ MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.xml") Then : Else
|
|
197
|
+ My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Zip.xml", Str + "\Telerik.Windows.Zip.xml") : End If
|
151
|
198
|
'--- 開啟專案---------------------------------------------------------------------------------------------------------------------------
|
152
|
199
|
MyModule1.進度條() : Shell(Str + "\HX-PGS-ERP-SYS.exe", vbNormalFocus)
|
153
|
200
|
Me.Close()
|
154
|
201
|
End Sub
|
155
|
|
- Private Sub 伺服器區域_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_cb.SelectedIndexChanged
|
156
|
|
- '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
|
157
|
|
- If 伺服器區域_cb.Text = "公司雲端" Then
|
158
|
|
- 登入人IP = "103.231.201.230,2433"
|
159
|
|
- ElseIf 伺服器區域_cb.Text = "測試雲端" Then
|
160
|
|
- 登入人IP = "106.1.48.106,4567"
|
161
|
|
- ElseIf 伺服器區域_cb.Text = "印尼測試" Then
|
162
|
|
- 登入人IP = "103.231.201.230,2433"
|
163
|
|
- End If
|
164
|
|
- End Sub
|
165
|
202
|
Public Sub Delay(ByRef Interval As Double) 'Interval单位为毫秒
|
166
|
203
|
Dim time As DateTime = DateTime.Now
|
167
|
204
|
Dim Span As Double = Interval * 1234
|