- OTA更新中保持了現有的連接
- 更新內容寫入到新的位置,因為本程序還在運行中是不能實現原位置替換的
- 更新完成后嘗試重新運行加載程序
- 在加載程序中嘗試運行更新后的程序
- reboot
os.execl( "cmd.exe", "/c", "G:/study/py/randomtest/reboot.bat" )
- execl的說明,重點的說明是,仍舊使用當前進程的資源
def execl(file, *args):
"""execl(file, *args)
Execute the executable file with argument list args, replacing the
current process. """
execv(file, args)