A question by Xenobiologist was asked in the >_SelfDelete() thread of whether or not I could create a function to update the running executable, so here is the _SelfUpdate function. Function: Using a Batch script. Save as _SelfUpdate.au3 #include-once
#include <FileConstants.au3>
#include <StringConstants.au3>
; #FUNCTION# ====================================================================================================================
; Name ..........: _SelfUpdate
; Descrip
Mine is much more simpler too. I use it with Res_Fileversion_AutoIncrement=y (SciTE) here in my job's network and works just fine. Func UpdateCheck($UpdatedVersionPath)
FileDelete(@ScriptDir & "\OLD.exe")
$CurrentVersion = FileGetVersion(@ScriptFullPath)
$LastVersion = FileGetVersion($UpdatedVersionPath & @ScriptName)
If $CurrentVersion < $LastVersion Then
TrayTip("Updater", "Updating. . .", "", 2)
FileCopy($UpdatedVersionPath & @ScriptName, @ScriptDir & "\NEW.exe")
F