- Aug
- 295
- 1
Code:
setlocal
comment
simplified Having trouble unsetting the msgbox_checkbox IV after batch has completed
endcomment
echo %_date %_time %_msgbox_checkbox
gosub test
echo %@time[%_time]
echo.
gosub test
echo %@date[%_date]
goto end
:test
: # I only want to see the msgbox once during the batch
: # remming next line seems to be the only way to rest it
if %_msgbox_checkbox == 1 return
msgbox /M /Pc /I /1 OK DONOTSHOWAGAIN "simple test" How to reset the internal varible^nRunning the script a second time commenting out^nthe above return, it seems is the only way of resting^nthe IV %_msgbox_checkbox varible
return
:end
:# I would of thought this would do it
unset _msgbox_checkbox
endlocal