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-01 12:39
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Regarding wfr replacement text View 1,778 Replies 3
Original Poster Posted 2011-01-14 05:44 ·  中国 湖北 宜昌 枝江市 电信
新手上路
Credits 7
Posts 5
Joined 2006-12-01 18:05
19-year member
UID 72287
Gender Male
Status Offline


"RootDevice"=hex(7):7b,00,38,00,41,00,39,00,42,00,37,00,32,00,39,00,35,00,2d,\
00,32,00,41,00,35,00,45,00,2d,00,34,00,45,00,32,00,43,00,2d,00,42,00,38,00,\
00,34,00,43,00,2d,00,39,00,32,00,35,00,44,00,38,00,43,00,44,00,33,00,39,00,33,\
00,42,00,34,00,7d,00,00,00,00,00


In this text, I used the following command to modify it but no operation was performed, and I don't know where the mistake is. Please help to check.


wfr.exe "*.reg" -rnnlic:^\"RootDevice\"=.*$\,00 -t:\"RootDevice\"=\"{6F31C22A-394B-42E8-9C65-CBF63AFC8CF2}\" -encin:UTF-16LE -encarg:GBK -encout:UTF-16LE -unisign -frc -trc


The intention is to replace "RootDevice"= with "RootDevice"="{6F31C22A-394B-42E8-9C65-CBF63AFC8CF2}"
Floor 2 Posted 2011-01-14 12:48 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
银牌会员
★★★
正在学习中的菜鸟...
Credits 1,039
Posts 897
Joined 2009-03-01 15:34
17-year member
UID 140302
Gender Male
From 在地狱中仰望天堂
Status Offline
Because of the encoding of the text
Floor 3 Posted 2011-01-14 13:47 ·  中国 湖北 宜昌 枝江市 电信
新手上路
Credits 7
Posts 5
Joined 2006-12-01 18:05
19-year member
UID 72287
Gender Male
Status Offline
This should not be an encoding problem and the encoding has been defined later (encin:UTF-16LE -encarg:GBK -encout:UTF-16LE -unisign ). I can replace it with the -ric parameter, but only the content of the first line can be replaced, and there are still 3 lines below that cannot be replaced. The -rnnlic parameter is said to be able to define line breaks in the description, but I don't know how to define the starting segment after this parameter, and the problem may be here.

[ Last edited by g1325 on 2011-1-14 at 13:49 ]
Floor 4 Posted 2011-01-14 19:06 ·  中国 湖北 宜昌 枝江市 电信
新手上路
Credits 7
Posts 5
Joined 2006-12-01 18:05
19-year member
UID 72287
Gender Male
Status Offline
Come and see, how to do it.
Forum Jump: