我的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文件有右括号
请教?
@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文件有右括号
请教?
