VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,578 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I make program to copy files and I want to show the copy speed I used System.IO library to copy the files.
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.