中国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-03 01:01
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How do you represent special characters in a batch file?
Printable Version  864 / 2
Floor1 flyboy612 Posted 2007-01-03 03:46
新手上路 Posts 6 Credits 15
How do you represent special characters in a batch file?
For example, if I want to use echo to make a registry file, how do I write a line break?

Edited: how do I use echo to generate a file in the following format??? (I just can't get the carriage returns and line breaks in the middle to work no matter what I do. I tried echo., but it doesn't work in the batch file? ) The content is as follows:


Windows Registry Editor Version 5.00


@="Blocked Popup"

[ Last edited by flyboy612 on 2007-1-2 at 12:49 PM ]
Floor2 tghksj Posted 2007-01-03 04:05
社区乞丐 Posts 90 Credits -49
ECHO.
::The code above outputs a blank line.

But your title doesn't match what you're asking. If the pandas show up later, you'll get a warning and lose points.....

[ Last edited by tghksj on 2007-1-2 at 03:08 PM ]
Floor3 flyboy612 Posted 2007-01-03 10:14
新手上路 Posts 6 Credits 15
Fixed. I found a method in ShenShan HongYe, and it was the same as the method in post #2.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023