JLBorges thank you so much, it work. But now the problem is if the user have more usb connect which copy? I try to explain it better: The program copies the file "myprog" if it is present, else it creates a file "myprog" (for example if i have not connetc usb, the program creates "myprog" in destination) . So if i have 2 or more usb connect, the program may overwrite the real file with the file created. How can I to avoid it?
Make a list of the root directories all the removable drives that are present,
and then check in each one if a file with the expected path exists or not.