🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9886

Re: SHFileOperation - Question

#9886
From: Andrue Cope
Date: Wed, 02 Jun 2004 11:00
33 lines
2415 bytes
On Wed, 2 Jun 2004 12:51:29 +0200, Tommy wrote:

> the help of SHFileOperarion i can copy the files very is. Does this also
> works with network drives?

Unfortunately the first sentence above makes no sense in English.

> While copying the files I like to display information, about which file is
> copying at the moment, hiw big the file is and how much of the file has
> already copied.

I don't think you can display anything more than Windows normally displays
so the final requirement (amount already copied) is probably not possible.

> furthermore it would be happy to show how many seconds,
> minutes or hours will be need when the whole process is finished.

I believe that is what you get as standard (ie;if you don't use
FOF_SIMPLEPROGRES). The accuracy of that information is questionable
however. If there is a particular need for this information (other than
just to keep the user happy) then you will probably need to implement your
own copying functions and progress dialog. TBH this isn't very difficult
but I wouldn't bother if you're only after "a few flashing lights and
things to amuse the users".

Actually predicting time to completion is tricky and the best you can do is
keep revising your estimate. Even then you need to build in a delay or
"aggregation factor" simply to produce reasonable values. Microsoft dodn't
appear to have bothered with this and that might be why the estimates it
gives (using SHFileOperation AFAIK) have more comedy value than accuracy :)
-- 
Andrue Cope
[Bicester UK]
Technical Details
Message-ID: <1m1nvj6lbffpw.ufpbxtniolsi.dlg@40tude.net>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40bdb13e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,acf999c4e1362fc6
X-Google-Attributes: gid10cc67,public
From: Andrue Cope <no.spam@spammy.com>
Subject: Re: SHFileOperation - Question
Newsgroups: borland.public.cppbuilder.nativeapi
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <40bdb13e@newsgroups.borland.com>
Date: Wed, 2 Jun 2004 12:00:23 +0100
Message-ID: <1m1nvj6lbffpw.ufpbxtniolsi.dlg@40tude.net>
NNTP-Posting-Host: 217.207.223.34
X-Trace: newsgroups.borland.com 1086174110 217.207.223.34 (2 Jun 2004 04:01:50 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail