hey, hope your well.

I am having a bit of a bother trying to figure this one out, my mind is all over the place and havent had much sleep!

ok, my application can check for an update on the net using webservices. if an update is availiable it downloads it and puts it in the "Files/yyy" folder. the app runs as normal after the update.

now, after the update, it is recommended to run the new app, but the new app is in the Files/yyy folder. Fair enough, no problem, user goes into that folder and runs the latest version of the app.

same thing again, user can check for update, if update is available, it puts it into the Files/yyy folder, so this time:

Files/yyy/Files/yyy

see where I am going?

how can I copy/move the updated file into the directory the application is running from - but the updated app has the SAME filename as the current running app.... how can I resolve that problem? I dont want to have to rename the updated file when its transferred....

what possible solutions could there be for this scenario? Is there one?