![]() |
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:16 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Question about multi-line strings |
| Printable Version 841 / 2 |
| Floor1 694837333 | Posted 2009-06-20 04:56 |
| 新手上路 Posts 10 Credits 15 | |
|
For example, if I create a new multi-line string, how do I enter data for multiple different lines?
The help says to use /s: Specifies a character to use as the separator in a REG_MULTI_SZ data string If omitted, "\0" is used as the separator. I tried a few times and still couldn't get it to work. I don't understand it. How can this be solved? Also, if I want a blank line between 2 lines of data, how can that be done? |
|
| Floor2 Hanyeguxing | Posted 2009-06-20 08:31 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
|
Use /d value to specify the value of the new registry entry.
For example, /d "han*ye*gu*xing". If /s is not used, the data will be han*ye*gu*xing. If "han*ye*gu*xing" /s * is used, the data will be: han ye gu Here, /s specifies the character used as the separator, and replaces the default \. If you only use /s without specifying a character, the default \ will be used as the separator. For example: / d "han\ye\gu\xing" /s Since nothing is specified, the default \ is used as the separator. The data will be: han ye gu |
|
| Floor3 694837333 | Posted 2009-06-20 08:48 |
| 新手上路 Posts 10 Credits 15 | |
|
Thanks for the explanation. I found that the * can't be left out, otherwise it gives an error......
Also, is it possible to have a blank line between 2 different lines of data? |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |