---
title: "Measure copying time through windows explorer C#"  
description: "Measure copying time through windows explorer C#"  
author: "Anonymous User"  
published: 2013-10-05  
updated: 2013-10-05  
canonical: https://www.mindstick.com/forum/1607/measure-copying-time-through-windows-explorer-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Measure copying time through windows explorer C#

I am creating a [method](https://www.mindstick.com/forum/166/webservice-method) which is measures the [copy](https://www.mindstick.com/forum/161993/explain-the-numpy-array-copy-vs-view-with-example) time for [files](https://www.mindstick.com/articles/23302/the-importance-and-advantage-of-keeping-your-important-files-on-the-cloud) and folder.

```
 public static TimeSpan CopyFileExplorer(string filePath, string fileDestination)
    {

        string command = @"/select, " + filePath;
        System.Diagnostics.Process.Start("explorer.exe", command);
        SendKeys.Send("^(C)");
        command = @"/select, " + fileDestination;
        System.Diagnostics.Process.Start("explorer.exe",command);
        DateTime startCopy = DateTime.Now;
        SendKeys.Send("^(V)");

        //need to be catched when explorer finishes the copy
        DateTime endCopy = DateTime.Now;

        return endCopy - startCopy;
    }
```

\

I have tried to find when the "copy [window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript)" of [explorer](https://www.mindstick.com/forum/34658/want-to-developed-windows-explorer-without-using-telerik) disappears, but I didn't be successful...

## Replies

### Reply by Anonymous User

You should try SendKeys.SendWait("");


---

Original Source: https://www.mindstick.com/forum/1607/measure-copying-time-through-windows-explorer-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
