【发布时间】:2013-03-08 05:29:13
【问题描述】:
我已经尝试过了,但它一直返回错误消息the syntax of the command is incorrect。这是我尝试过的代码:
@echo off
echo Enter Username and Password to view files
set /p user=Enter UserId:
set /p pass=Enter Password:
if /i %user%==admin (if /i %pass%==*my password was here*)
(goto admin1)
:admin1
..etc..
【问题讨论】:
标签: command-line batch-file syntax-error command-prompt