Copy file with display copy speed in vb.nt

Mohamed Marzouk 21 Reputation points
2022-06-27T23:45:29.93+00:00

I make program to copy files and I want to show the copy speed I used System.IO library to copy the files.

VB
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
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 26,671 Reputation points Microsoft Vendor
    2022-06-28T02:26:22.64+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful