hi all,
now im on the last bit of my tool i have been making i have come across a error when i move my file to a new dir and then want to convert the file it wont let me its like vb.net is still using it and wont do anything with it unless i close the app down and open it again this is the code im using to move/copy my file
CODE
Dim pic As FileInfo
Try
pic = New FileInfo(TextBox1.Text)
If pic.Exists() Then
pic.CopyTo("C:\mydir\" & RichTextBox1.Text & ".tga")
MsgBox("Moved Successfully! ") 'add this in testing to make sure its working
Else
MsgBox("ERROR in Moving File")
End If
Finally
End Try
i have also used
me.update()
but not sure on how to tell my app to let go of the file so i can then do something else with it!..
i have started this topic as it is not the same as the running a .bat! (i hope mods dont mind)
thanks in advance
Kev
This post has been edited by TADS: 15 Oct, 2008 - 10:54 AM