It also sets the default dos errorlevel value to - 1 同時(shí)還將dos errorlevel的默認(rèn)值設(shè)置為- 1 。
Exits and returns a dos errorlevel value when an error occurs 退出并返回一個(gè)dos errorlevel值。
Errorlevel : lists the error code of the most recently used command 列出了最近使用的命令的錯(cuò)誤代碼。
Microsoft ms - dos batch files can test the value of dos errorlevel and handle the error appropriately Microsoft ms - dos批處理文件可以測試dos errorlevel的值,并進(jìn)行適當(dāng)?shù)奶幚怼?
This is referred to as clean output . clean output improves the processing performance of scripting languages 如果sqlcmd腳本包含錯(cuò)誤的注釋、語法錯(cuò)誤或缺少腳本變量,則返回的errorlevel為1 。