私はこれを機能させようとしていますが、どうやらWindowsはそれを好まないようです。バッチ ファイルのこのセグメントにヒットすると、.bat が閉じます。
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.
)