(原创)批处理中变量的用法
2012-02-29 15:38
211 查看
批处理中变量的用法
@echo off
:S
Echo Please input the start part
set/p start=
if "%start%"=="" goto S
Echo Please input the middle part
Set /p middle=
Echo Please input the end part
Set /p end=
Set /p all= the above three part =%start%%middle%%end%
@echo %all%
pause
@echo off
:S
Echo Please input the start part
set/p start=
if "%start%"=="" goto S
Echo Please input the middle part
Set /p middle=
Echo Please input the end part
Set /p end=
Set /p all= the above three part =%start%%middle%%end%
@echo %all%
pause
相关文章推荐
- 【原创】加减计数器——标志变量的用法(Verilog)
- 【java】java类和类中的变量、方法默认权限修饰符的用法
- extern 用法,在命名空间全局变量用到
- SQL Server 2008 表变量参数(表值参数)用法
- makefile之变量高级用法
- (原创)QT Creator的style sheet的几种用法(QT Creator)(StyleSheet)(样式)(QT4.7)(用法)
- dos批处理文件中的变量小结
- bat的变量与命令set的用法
- C语言中枚举变量的用法
- mysql 判断日期间隔是否为3个月,mysql 的if的用法,临时变量的用法,mysql的 between and
- JAVA 系统变量之System.getenv()和System.getProperty() 用法
- 变量的声明与定义以及关键字extern的用法
- makefile详解 变量高级用法 追加变量值
- VS2010/MFC 中MessageBox函数显示变量的用法(显示数字、字符串)
- 启动Eclipse、Tomcat时设置相关环境变量的批处理
- 【原创】【C语言】‘#’(井号)和‘##’(双井号)用法
- 转,谢谢原创:mdadm用法
- 【原创】【C语言】队列的用法
- MySQL自定义函数用法详解-复合结构自定义变量/流程控制--及其相关案例
- 指针用法之一:给定结构体求某变量的偏移量,给出某变量偏移量求结构体首地址