I need to search and find a file based on its filesize (which is always the same) and then just replace this file with another one that I provide (keeping the name of the found file)

The file to search is inside java cache directory C:\Users\%username%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\

Please post you offer to make this application.