Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Assigning 3 variables to the same value - Undocumented

Aug
1,929
71
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\utils>SET /A "_var1=_var2=_var3=10"
10
c:\utils>echo %_var1% %_var2% %_var3%
10 10 10

Code:
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 https://jpsoft.com

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