We've got this pocket PC app - but this is a general .Net question...

This app will detect that a new version of the .EXE is available - and actually download it through the SQL CLIENT connection from the network server database. We are already storing images in the network server database - so I'm pretty sure I can store a .EXE as well.

I was thinking that I would "write" the new .EXE to the same folder as the current .EXE - but with a different name.

Now the question - how do I chain out to a .BAT file, for instance - that will rename the old .EXE and also rename the new app to take it's place?? I'm pretty sure that the rename operation cannot occur while the app is running (I've seen this fact on regular workstation installs of .EXE's - they are locked while they are running).

So I need to get into a .BAT file (or a little "rename .exe") and have the app itself close - so the rename operations can occur.