Batch Script to Set Vendor Name Based on Input
This\scode\ssnippet\sis\schecking\sthe\svalue\sof\sthe\svariable\s%vendor%
\sand\ssetting\sit\sto\sa\sspecific\svalue\sbased\son\sthe\scondition.\sThen\sit\sis\sechoing\sthe\svalue\sof\s%vendor%
\sand\susing\sfindstr
\sto\scheck\sif\sit\smatches\sany\sof\sthe\sspecified\svalues\s("M",\s"Y",\s"T",\s"S",\s"H").\sIf\sit\sdoes\snot\smatch\sany\sof\sthe\svalues,\sit\swill\sdisplay\san\serror\smessage\sand\spause\sthe\sscript.

原文地址: http://www.cveoy.top/t/topic/p3ci 著作权归作者所有。请勿转载和采集!