Solved

Directory Control

Posted on 1997-12-06
1
182 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
Comment Utility
Use CreateDirectory(Ex) Win32 API to create subdirectory and then use MoveFile(Ex) to move file(s).
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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 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.

771 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

10 Experts available now in Live!

Get 1:1 Help Now