Save/Load null variables
Posted: 15 Feb 2019 13:39
Is there any way to save null variables I have been saving and loading variables using.
(
echo %variable%
echo %variable2%
echo %variable3%
)>save.sav
and
(
set /p variable=
set /p variable2=
set /p variable3=
)<save.sav
This works fine, except that some variables are null (and I would like to keep them that way), and when
they have been saved and loaded, then they always show up as "ECHO is off." rather than just a blank.
What can I do to fix this? I want null variables to continue appearing as blank spaces even after loading.
Thanks in advance for your help.
(
echo %variable%
echo %variable2%
echo %variable3%
)>save.sav
and
(
set /p variable=
set /p variable2=
set /p variable3=
)<save.sav
This works fine, except that some variables are null (and I would like to keep them that way), and when
they have been saved and loaded, then they always show up as "ECHO is off." rather than just a blank.
What can I do to fix this? I want null variables to continue appearing as blank spaces even after loading.
Thanks in advance for your help.