file system command

RonR

Well-known member
Joined
Nov 23, 2007
Messages
82
Programming Experience
5-10
the code below works, but, if the user tries to exit the form(click on the X) while the files are being copied, the form crashes and does not respond.


VB.NET:
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) _
Handles Command1.Click


My.Computer.FileSystem.CopyDirectory("C:\MrddDemoData", "g:\copytest", True)


End Sub



any ideas on how to fix this?
 
Last edited by a moderator:
Back
Top