in reply to file management

Unless this is purely an academic exercise, you should just use the xcopy program.