
如何判斷字符串中是否含有指定字符/內容最后由 渣白 于 -3-31 18:27這個句子怎么用批處理代碼寫出來密鑰TGJ82-KN9YC-FVXR4-CWBQQ-977HC所有的密鑰是這樣組成的。25位數xxxxx-xxxxx-xxxxx-xxxxx-xxxxx如果 密鑰TGJ82-KN9YC-FVXR4-CWBQQ-977HC 找到了A I L O S Z 1 0 BBBBB(多于等于六位) 就顯示 密鑰包含非法字符這個是我的寫法 if %Key%|findstr /i A I L O S Z 1 0 BBBBB echo 密鑰包含非法字符if %Key:~5,1%==- ( if %Key:~11,1%==- ( if %Key:~17,1%==- ( if %Key:~23,1%==- ( if %Key:~-6,1%==- ( if %Key:~29,1%== ())))))不能用。。。求個正確的寫法//

