if statement - Parenthesis in Batch file -


  set var = 10 (device) if 1 == 1 (echo% var% is present)  

This batch file is causing the error due to bracket after "device".

How to solve it?

You enabled expanse and echo! Var is required!

  @echo off setlocal enabledelayedexpansion set "var = 10 (tool)" if 1 == 1 (if resonated) in the pending style   present) < / Code> 

is not directly related to your problem, but I think whenever you set in variable = string batch, then var = val < / Code> added in such quotation marks:

  set "var = 10 (device)"  

This is generally considered appropriate batch scripting In practice variable = string while trying to do this method, It also allows special characters such as:

  set "xml = & lt; device & gt; 10 & lt; / device & gt;" Settlelock enabled echoed exponent! XML!  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -