nice batch
来源:互联网 发布:微盘程序源码 编辑:程序博客网 时间:2024/05/18 21:50
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
- 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
- Java中的”推”技术
- 我一直用nokia的手机
- 随便记录一下
- onunload在Maxthon(傲游)中的问题
- cin流的状态和缓存刷新问题
- nice batch
- 基于DM642的JPEG压缩初步设计
- 58种网页常用小技巧(javascript)
- 2004 Java 官方开发工具总览
- DirectShow开发环境配置
- 用POI的HSSF来控制EXCEL的研究
- 平静的生活,有时候也很小资.
- Let's learn from each other!
- [转]Eclipse开发: Struts 2 + Spring 2 + JPA + AJAX