B
B-Dog
Is there a way to make vb.net to overwrite the file when moving? Here is
what I'm trying to do:
If System.IO.File.Exists(dest) Then
'handle overwrite here
If MessageBox.Show("Do you want to overwrite", "Overwrite File?",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
System.IO.File.Move(lstfilename, dest) 'I want to force overwrite file here
Else
what I'm trying to do:
If System.IO.File.Exists(dest) Then
'handle overwrite here
If MessageBox.Show("Do you want to overwrite", "Overwrite File?",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
System.IO.File.Move(lstfilename, dest) 'I want to force overwrite file here
Else