We help IT Professionals succeed at work.

Copy and rename files

halen
halen asked
on
526 Views
Last Modified: 2013-11-19
MFC doesn't seem to have any functions to copy files, only rename(at least for CFILE).  I don't want to use:

system( "copy * *" );

because it brings up a tacky DOS shell window.  What is the best way to copy and rename a file in MFC?
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
I knew it was something simple.  CopyFile even allows for renaming in the process.  Thanx...
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.