China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 23:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How do you represent special characters in a batch file? View 863 Replies 2
Original Poster Posted 2007-01-03 03:46 ·  中国 湖南 衡阳 电信
新手上路
Credits 15
Posts 6
Joined 2007-01-03 03:14
19-year member
UID 75302
Gender Male
Status Offline
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 ]
Floor 2 Posted 2007-01-03 04:05 ·  中国 山东 济南 电信
社区乞丐
★★
此图片另存后死机
Credits -49
Posts 90
Joined 2006-12-02 13:00
19-year member
UID 72412
Gender Male
Status Offline
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 ]
我的网络笔记本.非联系本人请勿访问!http://w.vicp.net
Floor 3 Posted 2007-01-03 10:14 ·  中国 湖南 衡阳 电信
新手上路
Credits 15
Posts 6
Joined 2007-01-03 03:14
19-year member
UID 75302
Gender Male
Status Offline
Fixed. I found a method in ShenShan HongYe, and it was the same as the method in post #2.
Forum Jump: