i want to make a program in c++ that automatically copy files to usb

hello friends, i want to make a program in C++, that i can install in my flash drive. only thing that i want from that program to do is, when i attach my flash drive to a computer, it automatically copy all the .ppt, .docx and .xlsx files from that computer to my flash drive. but i am unable to make the exact logic and algorithm to that problem. if anyone have any idea about how to start and what are the basic operation to perform, please do mention here. your suggestion will be appreciated.
Do you have anything so far? The code is as simple as "FindFirstFile()", "FindNextFile()" and "CopyFile()" in a recursive loop. Getting it to kick off automatically is the trick since most security suites block autorun.inf.
Topic archived. No new replies allowed.