Homecommand line Creating scoped variables in windows command line byAlex R. •September 22, 2021 Here is how we can create an environment variables that will be scoped to a specific block in a batch file:Example:@echo OffSETLOCALSET A="test"echo %A%ENDLOCALecho %A%The word "test" is printed once. Tags command line Facebook Twitter