🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by Jos� Fri, 28 Dec 2007 22:46
Copying a file
#935
Author: Jos�
Date: Fri, 28 Dec 2007 22:46
7 lines
973 bytes
I can copy a file by reading it and writing a new file. This creates a
new date.

It would be much simpler if there were a procedure to copy a file,
preferably retaining the original date. Does it exist?
-- 
Jos�
Re: Copying a file
#936
Author: Asger Joergensen
Date: Fri, 28 Dec 2007 23:01
14 lines
1259 bytes
Hi Jos 
 
 Jos says:
> I can copy a file by reading it and writing a new file. This creates a
> new date.
> 
> It would be much simpler if there were a procedure to copy a file,
> preferably retaining the original date. Does it exist?

Have a look at the Win API SHFileOperation.

Kind regards
Asger 
Re: Copying a file
#937
Author: Remy Lebeau (TeamB)
Date: Sat, 29 Dec 2007 00:09
10 lines
1176 bytes
"Asger Joergensen" <junk@Asger-P.dk> wrote in message 
news:MPG.21df9ead56ffc34f9899b7@newsgroups.borland.com...

> Have a look at the Win API SHFileOperation.

Or CopyFile() and Get/SetFileTimes()


Gambit 
Re: Copying a file
#938
Author: Jos�
Date: Sat, 29 Dec 2007 08:14
10 lines
1319 bytes
On Fri, 28 Dec 2007 16:09:50 -0800, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote in borland.public.cppbuilder.nativeapi:

>> Have a look at the Win API SHFileOperation.
>
>Or CopyFile() and Get/SetFileTimes()

So stupid I could not find CopyFile. It even works without a header.
-- 
Jos�
Re: Copying a file
#939
Author: Remy Lebeau (TeamB)
Date: Sat, 29 Dec 2007 08:16
11 lines
1376 bytes
"Jos�" <jose@127.0.0.1> wrote in message
news:1e0cn311uma19p2qi4j0l6k04fash7j5me@4ax.com...

> So stupid I could not find CopyFile. It even works without a header.

CopyFile() has a header file.  It is declared in winbase.h, which is one of
the core Win32 API header files that all Windows apps include.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads