Solved Reset a Variable - Batch

December 17, 2009 at 13:30:52
Specs: Windows Vista

Just wondering if there's a command for reseting
variables in a .bat script?


See More: Reset a Variable - Batch

Report •

December 17, 2009 at 14:59:26
✔ Best Answer
reset var1 to undefined (NOT null! big difference)
set var1=

if you have setlocal you can clear ALL the vars with:
(but be sure to re-institute local if that is what you intend)

Report •

December 18, 2009 at 03:21:06
Just as was asked in other thread as well, BAT is the old name of batchfiles, CMD is the new one (well, new since Windows XP). Apparently, there's commands that do not work in BAT, and do work in CMD.

Report •

December 18, 2009 at 05:41:51
Ok. Thanks guys

Report •

Related Solutions

Ask Question