-
May 2nd, 2008, 12:55 PM
#1
Exe to copy files
I want to make an application (exe file) in visual studio. I want to use this application to copy files from one location to another. This application should accept two command line arguments, one destination path and the other source path. I think I should start from scratch to accomplish this. Can you throw a few pointers as to how to get started with this?
Many thanks
-
May 2nd, 2008, 01:03 PM
#2
-
May 2nd, 2008, 01:12 PM
#3
Re: Exe to copy files
Actually i want to copy a folder from one location to another. But more than the logic to copy, i want to know how to set up the exe to accept the command line arguments.
I want to call the application from somewhere else like this:
<Application Name> <Source location> <destination location>.
thanks
-
May 2nd, 2008, 01:20 PM
#4
Re: Exe to copy files
Actually i want to copy a folder from one location to another
Enumerate your folder with CFileFind and copy each file.
i want to know how to set up the exe to accept the command line arguments.
Search Codeguru, there are alot of samples.
-
May 2nd, 2008, 03:17 PM
#5
Re: Exe to copy files
Or you can use ::SHFileOperation() which will copy the whole folder in one goal.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|