在代码行中将字符串和自定义文本一起调暗
Dim String and custom text together in code line
我需要帮助
My.Computer.Network.DownloadFile(DLLink1, DownloadDirectory1)
If (FolderBrowserDialog1.ShowDialog() = DialogResult.OK) Then
TextBox4.Text = FolderBrowserDialog1.SelectedPath
End If
Dim DownloadDirectory1 As String
DownloadDirectory1 = Trim(TextBox4.Text)
我希望能够做到这一点:
My.Computer.Network.DownloadFile(DLLink1, DownloadDirectory1/UpdatedClient.zip)
组合字符串形成路径的最佳方法是使用 Path.Combine 方法。
Dim myPath as String = System.IO.Path.Combine(DownloadDirectory1, "UpdatedClient.zip")
My.Computer.Network.DownloadFile(DLLink1, myPath)
你是这个意思吗:
My.Computer.Network.DownloadFile(DLLink1, (DownloadDirectory1 + "/UpdatedClient.zip"))
我需要帮助
My.Computer.Network.DownloadFile(DLLink1, DownloadDirectory1)
If (FolderBrowserDialog1.ShowDialog() = DialogResult.OK) Then
TextBox4.Text = FolderBrowserDialog1.SelectedPath
End If
Dim DownloadDirectory1 As String
DownloadDirectory1 = Trim(TextBox4.Text)
我希望能够做到这一点:
My.Computer.Network.DownloadFile(DLLink1, DownloadDirectory1/UpdatedClient.zip)
组合字符串形成路径的最佳方法是使用 Path.Combine 方法。
Dim myPath as String = System.IO.Path.Combine(DownloadDirectory1, "UpdatedClient.zip")
My.Computer.Network.DownloadFile(DLLink1, myPath)
你是这个意思吗:
My.Computer.Network.DownloadFile(DLLink1, (DownloadDirectory1 + "/UpdatedClient.zip"))