Close explorer.exe and delete the file.

Make a batch file similar to this:
Code:
TASKKILL /IM explorer.exe
Del C:\Path\To\file.exe
Explorer.exe