Solved

copy files

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
simple way to manipulate chinese characters in vb6 application. 13 279
convert char array to number in c 5 83
C++ question 3 62
Header of docx file 17 98
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now