我是批量腳本編程新手,嘗試執行以下if
語句,並且命令提示符返回有關語法的錯誤。我在互聯網上搜索過,似乎無法得到直接的答案,如何在批處理文件中執行if else語句。什麼是格式聲明的正確方法?任何幫助將不勝感激。if else批處理文件中的語句格式
if !cnt! geq 20 (
if !size! lss 5000000(sent>%cd%\EmailSent.txt
mailsend1.19.exe -to !email! -from [email protected] -ssl -smtp smtp.gmail.com -port 465 -sub "test" -M "The capture quality is not sufficient. Please retake capture." -auth-plain -user "[email protected]" -pass) else(sent>%cd%\EmailSent.txt
mailsend1.19.exe -to !email! -from [email protected] -ssl -smtp smtp.gmail.com -port 465 -sub "test" -M "The capture quality is ok. Patient good to go." -auth-plain -user "[email protected]" -pass)
)
它也應該是'回聲sent'不'sent'在'發送>%CD%\ EmailSent.txt%' – Compo