tn = TimeNum();
startTime = 091759; // start in HHMMSS format
endTime = 153159; // end in HHMMSS format
timeOK = tn >= startTime AND tn <= endTime;
// following line is not working
// after 3.31pm my code should stop shell execution. Pls help if any other alternative strategy.
// without timeOK codes are running fine but with I want endTime so that it will not work after 3.31pm
if ( NewPeriod )
{
ShellExecute("wscript.exe", "intraday.js", ".\\Scripts") AND TimeOK:
}
startTime = 091759; // start in HHMMSS format
endTime = 153159; // end in HHMMSS format
timeOK = tn >= startTime AND tn <= endTime;
// following line is not working
// after 3.31pm my code should stop shell execution. Pls help if any other alternative strategy.
// without timeOK codes are running fine but with I want endTime so that it will not work after 3.31pm
if ( NewPeriod )
{
ShellExecute("wscript.exe", "intraday.js", ".\\Scripts") AND TimeOK:
}