1
我试图让这个工作,但显然Windows不喜欢它。一旦它碰到我的批处理文件的这个段,关闭.bat。批处理文件问题 - 嵌套/分支'IF'语句
if %UserName% = Semedar (
if %UserName% 1394677 (
set administrator=true
)
)
if %administrator% == "true" (
echo This shows up for the admin
) Else (
echo otherwise if %UserName% doesn't equal "Semedar" or "1394677" this shows up.
)
谢谢!这工作。 :) – Semedar