I didnt like the way the new file was created so I changed the behaviour to rename the old file and new file has the old files name.
[code=thinbasic]'---Rename the old exe
FILE_Rename(sExeFile, Mid$(sExeFile,1,Len(sExeFile)-3) & "OLD.Exe")
'---Save the new exe
FILE_Save(sExeFile , sExeBuffer)
'---All done.
[/code]
Bookmarks