Solved

Directory Control

Posted on 1997-12-06
1
183 Views
Last Modified: 2010-04-10
I was trying to write a program in borlandC 4.5 to copy some files from a root directory into other directories.Now the other directories within the same drive. 1. i need create sub directories already in existing parent directories and then move the files into them. for instance. c: has directories called a,b,c ,well within these existing directories i need to creat sub directories and drop these files into them is this possible ?
0
Comment
Question by:jbird090897
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 20 total points
ID: 1175034
Use CreateDirectory(Ex) Win32 API to create subdirectory and then use MoveFile(Ex) to move file(s).
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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

914 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

21 Experts available now in Live!

Get 1:1 Help Now