Assigning 3 variables to the same value - Undocumented

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\utils>SET /A "_var1=_var2=_var3=10"
c:\utils>echo %_var1% %_var2% %_var3%
10 10 10
TCC  21.01.49 x64   Windows 7 [Version 6.1.7601]
Copyright 2017 JP Software Inc.  All Rights Reserved
Your evaluation period expires in 28 days.
You can buy Take Command, TCC, and CMDebug at

[c:\utils]SET /A "_var1=_var2=_var3=10"
TCC: Syntax error "_var2_var3=10"