请教各位,如何把下面中间的多行相似的代码合并成一行,功能不变,谢谢!- @echo off
- set "s=HKCU\Control Panel\International"
-
-
-
- reg query "%s%" /v Locale|find "00000409" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00001401" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00003C01" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00000C01" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00000801" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00002C01" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00003401" &&goto LocaleNG
-
- reg query "%s%" /v Locale|find "00003001" &&goto LocaleNG
-
- reg query /v Locale|find "00001001" &&goto LocaleNG||goto LocaleOK
-
-
-
- :LocaleNG
-
- echo,Locale NG
-
- pause&exit
-
-
-
- :LocaleOK
-
- echo,Locale OK
-
- pause
复制代码
|