thanks for the help and apologies I have mild autism which make learning little more difficult than the average person
I worked out a code which i think maybe right
HTML Code:
Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
Dim FileToCopy As String
Dim NewCopy As String
FileToCopy = "c:\toolbox\nandpro\nand1.bin"
NewCopy = "c:\toolbox\360multi\data\my360\nanddump.bin"
If IO.File.Exists(NewCopy) = True Then
End If
Dim overwrite As Integer
overwrite = MessageBox.Show("Do you want to overwrite the existing file", "Overwrite file?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If overwrite = vbYes Then
System.IO.File.Delete(NewCopy)
System.IO.File.Copy(FileToCopy, NewCopy)
MessageBox.Show("Successfully Copied" & vbNewLine & FileToCopy & "to" & NewCopy)
ElseIf overwrite = vbNo Then
End If
End Sub