Solved

how can I copy file in C# or VB.NET and catch the progress of the operation ??

Posted on 2007-03-26
7
927 Views
Last Modified: 2011-09-20
Hi
In C# or VB.NET I can use this command to copy files

System.IO.File.Copy("SourceFile", "DestFile");

But this command only useful if I have small files

But if I have large file 600MB it’s so important to catch the progress of the operation

My question is : how can I copy file in C# and catch the progress of the operation ??

Thanks with my best regarding

0
Comment
Question by:Fraas
  • 3
  • 3
7 Comments
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 18796707
What version VB.Net?
0
 

Author Comment

by:Fraas
ID: 18798116
I use .net 2.0
0
 
LVL 19

Expert Comment

by:Desp
ID: 18798148
See the My.Computer.FileSystem.CopyFile Method ,,,specifically the showUI Parameter which shows the current progress for u
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:Fraas
ID: 18798888
ohh ... this will show the system Dialog .. I need to create my onw Dialog + Progress

thanks all
0
 
LVL 19

Accepted Solution

by:
Desp earned 500 total points
ID: 18799016
You have to do it yourself then...
see the link
http://www.thescripts.com/forum/thread516498.html
start looking from the 4th comment
0
 

Author Comment

by:Fraas
ID: 18799047
hi

I know about this concept from the first time but I say to myself maybe there’s a direct way by using the new .net 2.0 functions

But because you give me the same concept .. no way I will start use it :) like before



0
 
LVL 19

Expert Comment

by:Desp
ID: 18799127
My.Computer.FileSystem.CopyFile is new in .net2.0 .. but unfortunately there is no readymade method for the thing that you want.. as far as i know
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hey!! 5 33
application restarter  - for an exe that hangs 9 26
DataTables + iCheck + pagination Issue 2 20
Calculate number of nights between two dates 5 21
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question