how to escape newline

G

GS

to use reg add with reg_multi_sz value I need to escape newline. how could I
do that in DOS?


for example
reg add "Line1\somerootkey' /v somekey /t reg-multi_sz "line1
line2
line3"
should be what?
 
G

GS

GS said:
to use reg add with reg_multi_sz value I need to escape newline. how could I
do that in DOS?


for example
reg add "Line1\somerootkey' /v somekey /t reg-multi_sz "line1
line2
line3"
should be what?
 
K

Klaus Jorgensen

GS wrote :
to use reg add with reg_multi_sz value I need to escape newline. how could I
do that in DOS?

Read the help message for the add command - i.e. "reg add /?".

The default is to use "\0" as a separator, but this can be changed
using the "/s" argument.
 
G

George Valkov

rem -- hit ENTER after each line
rem Try this:

echo line1^
More? line1^
More?
More? line2^
More?
More? line3
line1 line1
line2
line3

rem Good Luck


George Valkov


|
| | > to use reg add with reg_multi_sz value I need to escape newline. how
could
| I
| > do that in DOS?
| >
| >
| > for example
| > reg add "Line1\somerootkey' /v somekey /t reg-multi_sz "line1
| > line2
| > line3"
| > should be what?
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top