nice batch
来源:互联网 发布:linux内核论坛 编辑:程序博客网 时间:2024/05/20 00:13
1.变量延迟和变量替换
rem this batch is used to eliminate those unnecessary language tag
@echo off
setlocal enabledelayedexpansion
for /r %%i in (*.xml) do (
set ke=%%i
rem replace the by /
set file=!ke:=/!
rem agurments are bracked by "" in case of the backspace in the path
Xml2Xls.exe "!file!" "!file!"
)
pause
@echo off
setlocal enabledelayedexpansion
for /r %%i in (*.xml) do (
set ke=%%i
rem replace the by /
set file=!ke:=/!
rem agurments are bracked by "" in case of the backspace in the path
Xml2Xls.exe "!file!" "!file!"
)
pause
rem Create directory and copy files
@echo off
for /f "tokens=*" %%i in ('dir /ad /b') do (
md "%%iAssetsXMLText"
copy "%%i*.xml" "%%iAssetsXMLText"
del "%%i*.xml"
)
pause
@echo off
for /f "tokens=*" %%i in ('dir /ad /b') do (
md "%%iAssetsXMLText"
copy "%%i*.xml" "%%iAssetsXMLText"
del "%%i*.xml"
)
pause
- @echo off
- set c=2
- set a=123
- call set b=%%a:~0,%c%%%
- echo %b%
- pause
-
- setlocal enabledelayedexpansion
- set b=!a:~0,%c%!
- echo !b!
- pause
4. ping遍局域网
- for /L %i in (1,1,255) do @ping -a 192.168.0.%i
- nice batch
- nice batch
- nice
- nice!
- nice
- nice
- nice()
- batch
- Batch
- Batch
- nice weekend
- nice day~
- nice website
- nice day
- K-Nice
- 丘成桐很nice
- Nice Time
- 很Nice
- 连接池相关
- 厚积薄发
- 图片等比例缩小
- 怎样安装和配置Tomcat Admin
- DataGridView添加DateTimePicker
- nice batch
- 鼠标 在 按钮上变 手形
- struts:自定义taglib的开发
- 通用ODBC API应用结构概述
- 主线程退出时(关闭应用程序时)关闭所有线程
- SQLSERVER,无法安装,挂起
- CTO专访:坚守还是追新,开发者如何应对新技术暗潮(转载的文章)
- XSLT是什么类型的语言
- 在VC++下对文件属性的获取与更改