Solved

copy files

Posted on 1998-07-08
1
168 Views
Last Modified: 2010-04-01
Hi,
  After the end of month, I need to copy the previous log file to the archive directory. What the funnction, I can use it copy the file form "c:\apps.log" to "c:\archive\apps.log"?

Thanks!!
JC
0
Comment
Question by:jpchen
1 Comment
 
LVL 8

Accepted Solution

by:
trestan earned 50 total points
ID: 1167449
You can use Win32 function CopyFile or MoveFile.
Or for console application, use system function.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question