中国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-09-23 16:24
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » Regarding wfr replacement text
Printable Version  1,883 / 3
Floor1 g1325 Posted 2011-01-14 05:44
新手上路 Posts 5 Credits 7


"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}"
Floor2 Hanyeguxing Posted 2011-01-14 12:48
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Because of the encoding of the text
Floor3 g1325 Posted 2011-01-14 13:47
新手上路 Posts 5 Credits 7
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 ]
Floor4 g1325 Posted 2011-01-14 19:06
新手上路 Posts 5 Credits 7
Come and see, how to do it.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023