I use the following code snippet to check for a TCMD update.
I am not sure if it's possible, but I'd like to have the updated installer EXE go to %userprofile\Downloads\ - just to save time if a reinstall is necessary...
Code:
rem COMMENT
rem Check for TCMD / TCC updates......
set nDays=%@iniread[%@path[%ComSpec%]updater.ini,General,CheckFrequency]
rem check for %nDays not existing in registry, for example first run
rem end ....
set nToday=%@date[%_date]
IF NOT DEFINED nLastCheck set nLastCheck=0
IFF %@eval[%nToday - %nLastCheck] GE %nDays THEN
:: If more days has passed since last check was done then check for updates
start /pgm "%@path[%ComSpec%]updater.exe" /checknow
set /u nLastCheck=%nToday
ENDIFF
rem ENDCOMMENT
I am not sure if it's possible, but I'd like to have the updated installer EXE go to %userprofile\Downloads\ - just to save time if a reinstall is necessary...