标题: echo生成TXT文件出现的问题
[打印本页]
作者: gameyixiu
时间: 2007-9-12 13:07
标题: echo生成TXT文件出现的问题
我的1.bat代码如下
@echo off
set a=3
set b=hello
set c=24
for /L %%i in (1,1,%a%) do (
if not exist test-%%i.txt (
echo Direct("OK%%i.%b%", %c%, it's=true) > test-%%i.txt
echo Direct >> test-%%i.txt
)
)
此时,在我的目录里生成3个文件名为test的txt文件
文本文件里的内容是:
Direct("OK1.hello", 24, it's=true
Direct
缺少了一个右括号“) ”
怎么才能让生成的txt文件有右括号
请教?
作者: ThinKing
时间: 2007-9-12 13:20
在 ) 前加一个 ^ 。
作者: gameyixiu
时间: 2007-9-12 13:46
问题已解决,谢谢