What is the difference between “…” and x”…” in an IF condition in a Windows batch file?
That is simply a very bad coded string comparison. The x on both sides makes it possible to compare the two strings even if %str1:bcd=% or %str1% is substituted by Windows command processor on parsing entire command line by an empty string before execution of command IF. But the batch file execution is nevertheless exited … Read more