Hello, I'm trying to write a utility for something I'm working on. But I ran into this problem. I'm calling the system() function to perform xcopy. However, I don't think xcopy has an option that will tell it to automatically not overwrite files already there in the destination. It prompts for a user response whether to overwrite or not.
My question is, is there anyway I can pass a response from my C program to the command line? (Say I want to pass a 'no' on the overwrite?)
Or is there a better way to get xcopy not to overwrite stuff that's already in the destination?
Thanks a lot for your help.