use quotation mark to make it a string


所有跟贴·加跟贴·新语丝读书论坛

送交者: apple 于 2007-05-03, 22:44:36:

回答: DOS 牛人请进 由 jxh 于 2007-05-03, 22:35:53:

set JXH="GOOD"
if "%JXH%"=="GOOD" (
echo "connect()" > test.txt
echo "give him something" >> test.txt
echo "exit()" >> test.txt
)

Otherwise, it is treated as a function call.




所有跟贴:


加跟贴

笔名: 密码: 注册笔名请按这里

标题:

内容: (BBCode使用说明)