🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.os.windows-11
Article #955

Re: Two stages to copying files?

#955
From: Paul
Date: Thu, 12 Nov 2026 17:49
67 lines
3837 bytes
On Thu, 11/12/2026 5:15 AM, micky wrote:
> When I copy a bunch of files from one file manager to another, it goes
> slowly, one at a time for a long time, and when it's done with that
> stage, it goes quickly, within 5 or 10 seconds again, as if it is
> finalizing the copy.  What really goes on during the two stages? 
> 
> The first stage must be the actual copy, but what is the second stage? 
> 

Since you are the king of tricks, we cannot fall for your syntax :-)

Are you referring to a copy from one explorer.exe window to
a second explorer.exe window ? Perhaps you have one of the
alternate File Managers, we'll call it "FM2" for lack of a name.

explorer.exe to explorer.exe using local disks
explorer.exe to explorer.exe local disk to share
explorer.exe to FM2.exe window using local disks
explorer.exe to FM2.exe local disk to share
shell+copy from command line (has entirely different behavior)

There can be a multitude of cases involved, so
we would want to be absolutely sure what you're
doing, before snapping out an answer.

The other way to answer the question, is to do a trace
and see for yourself. Process Monitor can do the trace.

As a guiding principle, file copying has to work on
a low resource machine. We cannot make up non-scale-able
descriptions or we will be immediately corrected by
the audience for being silly. As an example, on purpose
I made a non-scale-able "paulcopy.exe" which reads a file
into memory, then writes it out once the file is completely
in memory. This is fun, but it cannot handle that 100GB file.
This is how I learned there is a bug in fwrite() :-)

The first pass can be "assembling metadata" from the files,
in order to estimate the copy time (which is silly, when
the copy in the shell does not do that and it just copies).

*******

Why not record what happens with Process Monitor, then set up
the filter events such as:

    Operation       Is         CreateFile
    Operation       Is         ReadFile
    Operation       Is         WriteFile

and the times and the names, indicate what is happening.

   https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

Normally, the copy starts with an enumeration of all the files in
the source, in an attempt to create an estimate of the transfer time.

Then the physical transfer starts after that.

Each file is transferred in a "for loop", with a buffer of a
fixed size. That's the kind of pattern you expect to find
in your trace. It could be read64K, write64K kind of thing.

Then you can tell us how it works :-)

  Paul
Technical Details
Message-ID: <11d4u7e$5g94$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <vt3bfll8ehiah2h7e6jvf810k4563lsq24@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Paul <nospam@needed.invalid>
Newsgroups: alt.comp.os.windows-11
Subject: Re: Two stages to copying files?
Date: Thu, 12 Nov 2026 12:49:35 -0500
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <11d4u7e$5g94$1@dont-email.me>
References: <vt3bfll8ehiah2h7e6jvf810k4563lsq24@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Nov 2026 17:49:35 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="180516"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/XGFZL2StzHQ5QkjD4pBjCJhNaKuNME08="; posting-host="01fe5db8920e91ebc5cb7a41fbbd3305"
User-Agent: THIS SPACE FOR RENT
Cancel-Lock: sha1:HYdOvt5bPM31S4hcpvxi8szgicw= sha256:xdPCSDZFNxBQL9okH0VrJaS/kgZwcjWFw9w1hv0oe7g=
	sha1:5EcaVZ3Dv9CzexUWRw2Ne2ZHXkc= sha256:XNyzYSF4LdLHr41L++BXEvbyGchnQerV8j+blboOqjE=
In-Reply-To: <vt3bfll8ehiah2h7e6jvf810k4563lsq24@4ax.com>
Content-Language: en-US