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 is not directly related to your problem, but I think whenever you set in This is generally considered appropriate batch scripting In practice variable = string while trying to do this method, It also allows special characters such as: 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> variable = string batch, then var = val < / Code> added in such quotation marks:
set "var = 10 (device)"
set "xml = & lt; device & gt; 10 & lt; / device & gt;" Settlelock enabled echoed exponent! XML!
Comments
Post a Comment