Solved

copy files

Posted on 1998-07-08
1
167 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

809 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