hao_bai
14 years agoOccasional Contributor
How can I RebootAndContinue several times ?
I use following
script at XP-pro SP3,TC7.52:
Unit1.sj
But TC will not restart automatically every time, each time need I manually reopen TC and go to the Unit1.sj, then the computer will restart and continue.
And I got Error pic sometimes
script at XP-pro SP3,TC7.52:
Unit1.sj
function Restart(API) {
Log.Message("Try to RebootAndContinue API: " + API );
KillProcess("Explorer");
KillProcess("explorer") ;
KillProcess("notepad");
KillProcess("Uedit32");
KillProcess("firefox");
KillProcess("EXCEL");
aqEnvironment.RebootAndContinue(API);
}
function test1() {
Log.Message("====1111====test1...");
Restart("Unit1.test2");
}
function test2() {
Log.Message("=====2222222=====test2...");
Restart("Unit1.test3");
}
function test3() {
Log.Message("=====3333333=====test3...");
}
But TC will not restart automatically every time, each time need I manually reopen TC and go to the Unit1.sj, then the computer will restart and continue.
And I got Error pic sometimes