BAT 怎么写 if x>y 则x-y,否则x-y的代码,我自己写的无法运行😊在网上找说是set无法在if里运行。
if %x% GTR %y% ( set /a result=%x%-%y% ) else ( set /a result=%y%-%x% )
调用就echo %result%