0
我有它運行如下的批處理文件:批次:比較的命令行參數
c:\test.bt -abcd
現在裏面的批處理文件,我有以下代碼:
if "%1" == "-abcd"
(
do something
)
else
(
do something else
)
,但它一直給我執行中出現以下錯誤:
The syntax of the command is incorrect.
if "-abcd" == "-abcd"
請問有人可以告訴我發生了什麼事嗎?