GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Jan-2008, 10:28
darshan.yadav darshan.yadav is offline
New Member
 
Join Date: Jan 2008
Posts: 3
darshan.yadav is on a distinguished road
Red face

How to copy all files from one folder to other


Hello
I am new to programming
i want to process some files contained by a folder
how can i access all file path from that folder during programs execution.
conditions
1)folder may contain another folder
2)any type of file can be in folder
3)i need to process files one by one need to made the exact replica of the folder....


Thanks in advance...
  #2  
Old 02-Jan-2008, 12:02
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,648
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: HOw to copy all file from one folder to other


Quote:
Originally Posted by darshan.yadav
...I want to process some files...

The standard C language and standard C library functions (C++ too) are deliberately ignorant of all physical and architectural characteristics of your system (such as directory structure and path specification terminology).

In other words, functions you use to find files in a given directory (folder) and notation that is used to specify other directories will depend on what operating system and what compiler you are using.

So:
1. What compiler are you using? If it is for Windows, then what version of Windows are you using?

2. Are you creating a command-line application or a GUI (Graphical User Interface) application? If it is for GUI, there will (probably) be some additional information that we need.


Regards,

Dave
  #3  
Old 02-Jan-2008, 21:40
darshan.yadav darshan.yadav is offline
New Member
 
Join Date: Jan 2008
Posts: 3
darshan.yadav is on a distinguished road

Re: HOw to copy all file from one folder to other


I am using Visual studio 6..
and it is for Window XP m\c
and we are creating GUI.........

<I tried to find files using MFC fuction findfirstfile() and findnextfile()
but it can not search files in folder in folder..>
  #4  
Old 03-Jan-2008, 08:51
darshan.yadav darshan.yadav is offline
New Member
 
Join Date: Jan 2008
Posts: 3
darshan.yadav is on a distinguished road

Re: How to copy all files from one folder to other


Thanks for support
i got it from _findfirst() and findnext()
functions.............
  #5  
Old 29-Apr-2008, 02:52
shidlingayya shidlingayya is offline
New Member
 
Join Date: Apr 2008
Posts: 2
shidlingayya is on a distinguished road

Re: How to copy all files from one folder to other


Quote:
Originally Posted by darshan.yadav
Thanks for support
i got it from _findfirst() and findnext()
functions.............

Hai Darshan Yadav,
Can you give the source code for me..whatever you have solved same problem i am facing??Thanks for help
  #6  
Old 29-Apr-2008, 04:17
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 425
Peter_APIIT is on a distinguished road

Re: How to copy all files from one folder to other


What is findfirst() and findnext() ?
__________________
Linux is the best OS in the world.
 
 

Recent GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 07:44
Thread synchronization Assignment help!! rossi143 C Programming Language 1 25-Mar-2007 20:10
C++ for moving files across network? dlp C++ Forum 1 25-May-2006 12:22
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:26.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.