The environment window displays the Windows environment used when debugging the batch file in the active edit window.


The environment variables window displays any variables changed since the last command in red. You can specify variables to exclude from the environment variable window with the DebugVariableExclude variable. For example, to suppress the display of the processor and user variables:


set DebugVariableExclude=proc*;user*


Note that this option doesn't affect the existence of the variables, just whether they're displayed in the environment variable window.


The environment window has a toolbar, with the following buttons:


NewRestore the original values for the environment
OpenAdd the contents of a file to the environment
SaveSave the current environment to a file
ApplyReplace the original values with the modified environment
PrintPrint the current environment
CutCopy the highlighted selection to the clipboard and delete it from the environment
Copy Copy the highlighted selection to the clipboard
PasteCopy the contents of the clipboard to the current cursor location
DeleteDelete the highlighted selection (or the character at the cursor location if no selection)
UndoUndo the last edit
RedoRestore the last Undo
FindSearch for text
HelpDisplay the online help