Solved

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

Posted on 2007-03-26
7
924 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now