Swap location of 2 files but keep original names in place

For the swapping of the file names there is a very neat code, described here:
[url]Swap the names of two files]

Sorry, i can´t say much about the rest of your requested button, but that swapping code
might be a good starting point.