<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>交互 &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/tag/%E4%BA%A4%E4%BA%92/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Thu, 01 Nov 2012 14:17:53 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.1</generator>
	<item>
		<title>windows批处理参数输入交互</title>
		<link>https://www.mudbest.com/windows%e6%89%b9%e5%a4%84%e7%90%86%e5%8f%82%e6%95%b0%e8%be%93%e5%85%a5%e4%ba%a4%e4%ba%92/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 10:38:13 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[交互]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[批处理]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=1657</guid>

					<description><![CDATA[简单的批处理只有一个窗口，如果当存在很多个批处理的时候，每个功能都不一样，可以把他们集成到一起，这时候可以对批 ... <a title="windows批处理参数输入交互" class="read-more" href="https://www.mudbest.com/windows%e6%89%b9%e5%a4%84%e7%90%86%e5%8f%82%e6%95%b0%e8%be%93%e5%85%a5%e4%ba%a4%e4%ba%92/" aria-label="阅读 windows批处理参数输入交互">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>简单的批处理只有一个窗口，如果当存在很多个批处理的时候，每个功能都不一样，可以把他们集成到一起，这时候可以对批处理进行交互操作，也就是传输参数，根据不同参数调用不同功能的批处理。</p>
<p><span id="more-1657"></span></p>
<pre class="brush: plain; title: ; notranslate">
rem 关闭屏幕回显
@echo off

rem 设置延迟变量赋值
setlocal enabledelayedexpansion

rem 清屏
cls

rem 设置窗休最大高度和宽度
mode con: cols=70 lines=23

rem tt变量赋值
set tt=Mudbest. http://www.mdubest.com

rem 设置背景前景色，并设置显示窗休标题显示文字
color f9
title %tt%

rem 代码段标记
:_reChoose
cls

rem 空出一行
echo.

rem 打印屏幕交互菜单
echo     本脚本将导入指定IP信息，协助您高效完成IP地址等相关信息的设置。
echo.
echo         请选择网络环境：      
echo         1、私人住所
echo         2、单位办公室
echo         3、退出批处理
echo.

rem 等待用户输入
set /p chooseResult=请输入网络环境标识编号：【1/2】

rem 逻辑分支判断(/i参数表示勿略大小写)
if /i '%chooseResult%'=='' goto _reChoose
if %chooseResult% LSS 1 goto _reChoose
if %chooseResult% GTR 3 goto _reChoose

rem 选择环境编码1
if %chooseResult%==1 (
 echo.
 if exist d:/ipInfoBackUp_home.txt (
  netsh exec d:/ipInfoBackUp_home.txt
  echo IP地址等相关信息已成功导入--home环境
 ) else (
  echo 指定的IP地址信息文件不存在==》请确认是否执行过导出脚本。
 )
)

rem 选择环境编码2
if %chooseResult%==2 (
 echo.
 if exist d:/ipInfoBackUp_office.txt (
  netsh exec d:/ipInfoBackUp_office.txt
  echo IP地址等相关信息已成功导入--office环境
 ) else (
  echo 指定的IP地址信息文件不存在==》请确认是否执行过导出脚本。
 )
)

rem 选择环境编码3
if %chooseResult%==3 (
 echo.
 set /p answerResult=您确定要退出批处理吗?【Y/N】
 if /i &quot;!answerResult!&quot;==&quot;Y&quot; exit ::此处!号表示使用变量延迟赋值。
 if /i &quot;!%answerResult!&quot;==&quot;N&quot; goto _reChoose
 if /i not &quot;!answerResult!&quot;==&quot;Y&quot; if /i not &quot;!answerResult!&quot;==&quot;N&quot; echo 输入值非法!
)

:_reImp
echo.
set /p reImport=您是否还要继续导入?【Y/N】
if /i '!reImport!'=='Y' (
 goto _reChoose
) else if /i '!reImport!'=='N' (
 exit
) else (
 echo 输入值非法!--请重新输入...
        goto _reImp  
)

pause

rem 开启屏幕命令执行回显
@echo on
</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
