中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 04:36
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] Question about echo and &
Printable Version  928 / 2
Floor1 vlq2599 Posted 2009-08-10 04:32
新手上路 Posts 10 Credits 7
Please look at the following batch file:


What I want from this line is to generate a 123.bat file whose content is: 123&pause
But in reality what I got was a 123.bat file whose content is: Press any key to continue . . .

How can I keep & from executing? How should this line be modified?
Floor2 qinchun36 Posted 2009-08-10 05:12
高级用户 Posts 400 Credits 609
Use the escape character ^


Floor3 vlq2599 Posted 2009-08-10 05:36
新手上路 Posts 10 Credits 7
Thanks
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023