2,892 questions
Hi @Mohamed Marzouk ,
Refer to the documentation and code below.
How to provide a progress dialog box for file operations
FileSystem.CopyFile Method
FileSystem.CopyDirectory Method
Imports Microsoft.VisualBasic.FileIO
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim sourcePath As String = "C:\Windows\symbols\"
Dim destinationPath As String = "C:\TestFolder"
FileSystem.CopyDirectory(sourcePath, destinationPath, UIOption.AllDialogs)
End Sub
End Class
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.