#include <WinAPIProc.au3>
$sTemp = StringRegExpReplace(@TempDir, "[0-9A-Fa-f]{4}~1", @UserName) & "\"
$aList = ProcessList()
For $i = 1 To $aList[0][0]
$sFullName = _WinAPI_GetProcessFileName($aList[$i][1])
If $sFullName = $sTemp & $aList[$i][0] Then
ProcessClose($aList[$i][0])
ProcessWaitClose($aList[$i][0], 3)
FileDelete($sFullName)
EndIf
Next