I couldn't get another reply with my other post, so i've posted my new problem. I'm trying to get a save file dialogue to overwrite a file with the same name.
with some help I got the following code --->
I keep getting an error saying "Unhandled exception has occurred in your application." Then the next paragraph says "The process cannot access the file 'E:\Copy of Release+Fonts\bob.txt' because it is being used by another process."Code:Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click If RadioButton16.Checked Then If IO.File.Exists("bob.txt") Then Dim sfd As New SaveFileDialog If sfd.ShowDialog = Windows.Forms.DialogResult.OK Then IO.File.Copy("bob.txt", sfd.FileName, True) End If End If End If
I've checked a million times, there is no other processes using bob.txt.




Reply With Quote