could someone show me the source of a program that would search for a file then copy it to a folder.
thx
could someone show me the source of a program that would search for a file then copy it to a folder.
thx
It varies from system to system. You need to give us more information.
We won't provide any help unless you make an effort to do it yourself.
its for a windows OS
i need it to find files on my computer like *.DOC files that my reports are in and move them to another folder so i can find them easier.
and to tell the truth i dont really even know were to start
Last edited by c++.prog.newbie; 06-11-2003 at 08:22 PM.
Look into WinAPI. Also, there is a thread on the C++ board about deleting folders that may give you a starting point.
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
i was hoping it would be a program that ran minimized in dos or something that doesnt need user input
Go to start menu, select find, and search for '*.doc'
Then, select all of the results, select cut, and paste them in a folder of your choice.
thats to easy though.
and i was hoping i could use this to learn how to use the copy and find functions.
Look into file and folder functions in WinAPI. MSDN will undoubtedly have documentation on this.
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
could you tell me how to get to them
If your interested in dos, lookup findfirst() or similar in a dos compiler's help section.
Mill about in same from MSDN - http://msdn.microsoft.com/library/de...ndfirsti64.asp
You could always write a batch file to do that.
copy drive:\directory\*.doc drive:\new directory
use dos's 8.3 format
I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P
Alternatively, this thread discussed finding and deleting files. If you replace the DeleteFile() API call with the MoveFile() call.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
thx but could you give me or tell me were to find the parameters for MoveFile()
what header do i need for MoveFile().
did you even bother to look up the function at all on msdn?
for this source (the msvc++) how do i make it look from the root dir. of the computer and not were the program is.Originally posted by Salem
Meditative "Aummmm"
so rather than it searching from.
c:\...\\<place were program is>
it will search from.
c:\
and have the file anywere