473,320 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

COPY over Win32 WinAPI C

In english
==========
It exists any way to copy directly the content of a file to ano-
ther file using a Win32 (WinAPI) C application, that doesn't uses
ms-dos "copy" and doesn't needs to read-and-save-to-another-file
each file?
(I use Pelles C.)

In Portuguese
=============
Existe alguma forma de copiar o conteúdo dum ficheiro para outro
ficheiro usando uma aplicação de C de Win32 (que usa a WinAPI), que
não use o comando "copy" do MS-DOS e que não precise de ler todo o
ficheiro para depois guardar o seu conteúdo para outro ficheiro?
(Eu uso o Pelles C.)

--
Nuno Silva (aka NJSG)

=== - ===
My english isn't very good, because it isn't my first language. If you
found any mistake (or have problems understanding the post), tell me.
=== - ===
I have a 33.3 kbps Internet Dial-Up Connection.
Please wait by my replies with patience.

Nov 14 '05 #1
5 2662
NJSG wrote:
In english
==========
It exists any way to copy directly the content of a file to ano-
ther file using a Win32 (WinAPI) C application, that doesn't uses
ms-dos "copy" and doesn't needs to read-and-save-to-another-file
each file?
That doesn't exist in any OS. *NIX has hard and softlinks, but those
aren't copies as well.
(I use Pelles C.)

Igmar
Nov 14 '05 #2

"NJSG" <me@minenet.net> wrote in message
It exists any way to copy directly the content of a file to ano-
ther file using a Win32 (WinAPI) C application, that doesn't uses
ms-dos "copy"
fopen(), fgetc() and fputc(), and fclose() will do the trick.
and doesn't needs to read-and-save-to-another-file each file?

I don't really understand this bit. In some operating systems you can create
a link to effectively copy a file without physically duplicating it - there
will be Windows-specific functions that do this but not ANSI, and I couldn't
tell you offhand what the Microsoft functions are.
Nov 14 '05 #3

"NJSG" <me@minenet.net> wrote in message
news:40**********************@news.telepac.pt...
In english
==========
It exists any way to copy directly the content of a file to ano-
ther file using a Win32 (WinAPI) C application, that doesn't uses
ms-dos "copy" and doesn't needs to read-and-save-to-another-file
each file?
(I use Pelles C.)


<snip>

Win32 programming is off-topic.

--
Jeff
comp.lang.c faq http://www.eskimo.com/~scs/C-faq/top.html
Nov 14 '05 #4
In article <40**********************@news.telepac.pt>, me@minenet.net says...
In english
==========
It exists any way to copy directly the content of a file to ano-
ther file using a Win32


comp.os.ms-windows.programmer.win32
Nov 14 '05 #5
NJSG wrote:
In english
==========
It exists any way to copy directly the content of a file to ano-
ther file using a Win32 (WinAPI) C application, that doesn't uses
ms-dos "copy" and doesn't needs to read-and-save-to-another-file
each file?
(I use Pelles C.)


Copying a file *means* reading and saving to another file. If you don't
want to copy, don't say that you do.
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: littleroy2005 | last post by:
How can i Create a EXE file in win32 use C++ thanks!
1
by: kathy | last post by:
I have posted my problem before and still not feel confused. Anyone know what is the problem? In my Win32 dll, I defined: #ifdef DllExport #define UNMANAGED_API __declspec(dllexport) #else...
2
by: Danny | last post by:
Hi I want to be able from my csharp button to start an application ( which I can do) and then somehow send a message to the win32 application that says "press the button" The win32...
7
by: newguy194 | last post by:
Why am I unable to produce a button with this Win32 program? All I have been able to produce is the empty window. #include <windows.h> // Declare WndProcedure LRESULT CALLBACK...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.