作者:ymqq2003 | 时间:2009-01-16 12:59 | 标题:请问,如何把文本中的内容传给批处理中的变量?
请问,如何把文本中的内容传给批处理中的变量?
作者:cccccccc | 时间:2009-01-16 13:27 | 标题:不知道
不知道
作者:slore | 时间:2009-01-16 13:48
for /f
作者:netbenton | 时间:2009-01-16 22:30
如果文本只有一行,可以这样
set /p var=<test.txt
作者:ymqq2003 | 时间:2009-01-20 15:31
谢谢?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
作者:mcknight1013 | 时间:2009-01-21 14:57
for /f "delims=" %%a in (XX.txt) do xx %%a
作者:qq43142691 | 时间:2009-01-21 15:04
set LineNo=2
set "Net="
set/a LineNo-=1
for /f "delims=" %%a in ('more/e +%LineNo% ^< "1.txt"') do (
if not defined Net set "Net=%%a"
start IEXPLORE %%a&&exit
)
作者:523066680 | 时间:2009-01-21 22:27
大哥,你1楼要说清楚,什么情况? 只有一行
还是多行, 还是要某一句的某一部分?