I am using the code below to upload an image but I get an error message if the file already exist. How do I check if the file already exist and if it does inform users with a message box?
Dim DestinationPath As String = Application.StartupPath & "\Images\" & IO.Path.GetFileName(C1Image.Text)
IO.File.Copy(C1Image.Text, DestinationPath)
Thanks,
Victor