我似乎无法解决这个问题,为什么我会收到此错误(Error 1 Too many arguments to 'Public Shared Function Exists(path As String) As Boolean')
?
这是我的代码:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim CopyFile As String
Dim CopyTo As String
CopyFile = src1.Text
CopyTo = dest1.Text
If System.IO.File.Exists(CopyFile) = True Then
System.IO.File.Exists(src1.Text, dest1.Text)
MsgBox("Copied!")
End If
End Sub
非常感谢你!