标签:
要写一个批处理命令 转换场景数据
包括从文件里读入
每一行信息是一个要转换的场景名字
可以拼出路径
到指定路径 执行命令
http://blog.csdn.net/mfx1986/article/details/5606228
FOR /F %%i IN xx.txt DO xxxx
截取字符串
setlocal enabledelayedexpansion
for /F "tokens=*" %%a in (‘type %FileName%‘) do call :Foo %%a
goto End
:Foo
set z=%1
echo %z%
echo %1
goto :eof
:End
是那个等号前后都不能有空格的意思。。。。花了我一个半小时。。。
==================================================================
1 @echo off 2 setlocal EnableDelayedExpansion 3 set rootMap=... 4 rem there is a space between do and ( 5 for /f %%i in (maplist.txt) do ( 6 rem no space before and after = with set 7 set scene=%%i 8 set dir=!scene:~0,-2! 9 set rootDir=!rootMap!\!dir!\!scene! 10 11 c: 12 cd !rootDir! 13 call !rootMap!\...exe -para...
@echo off
setlocal EnableDelayedExpansion
set rootMap=...
rem there is a space between do and (
for /f %%i in (maplist.txt) do (
rem no space before and after = with set
set scene=%%i
set dir=!scene:~0,-2!
set rootDir=!rootMap!\!dir!\!scene!
c:
cd !rootDir!
call !rootMap!\...exe -para...
标签:
原文地址:http://www.cnblogs.com/minggoddess/p/4684415.html