Subject: RE: B20, Win95: cp destroys file
From: [email-masked] (Hugh Winkler)

17 Nov 1998 00:06:53 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
To: "'Mumit Khan'" <[email-masked]>, <[email-masked]>
Cc: "'Henry S. Warren, Jr.'" <[email-masked]>, <[email-masked]>

> I believe that the problem is in MoveFileEx (WIN API), which
> doesn't do
> the right thing. However, the rename in MSVC runtime does somehow do
> it correctly on all filesystems, so it's doing something more
> than using
> MoveFileEx. (fyi, mv uses the rename runtime routine in winsup that in
> turn uses MoveFileEx to do the actual renaming).
>
> Comments from win32 savvy folks?
>

msvcrt rename() uses MoveFile, not MFEx. It's just a simple pass through
call, no input checking.

Hugh Winkler
Scout Systems, Inc.

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".