DOS批处理问题

2025-05-21 18:28:38
推荐回答(1个)
回答1:

if %sex%=="男" (goto line1)
if %sex%=="女" (goto line2) else goto line3

把%sex%都改成是"%sex%",或者把男,女所带的双引号去掉。