string comparison in batch file

前端 未结 3 1306
温柔的废话
温柔的废话 2020-12-24 10:03

How do we compare strings which got space and special chars in batch file?

I am trying:

if %DevEnvDir% == \"C:\\Program Files (x86)\\Microsoft Visual         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 10:47

    The solution is DO NOT USE SPACES!

    IF "%DevEnvDir%"=="C:\" (
    

提交回复
热议问题