Answer the question
In order to leave comments, you need to log in
How to make a line break when creating a file?
How can I make sure that when creating a file there are line breaks after ">"?
[HKEY_CLASSES_ROOT\.html\ShellNew]
"Data"="<!DOCTYPE html><html><head><meta http-equiv='Content-Language' content='ru'><meta http-equiv='Content-Type' content='text/html; charset=utf-8'><meta name='viewport' content='width = device-width,height = device-height, initial-scale = 1'><link rel='stylesheet' href='1.css' type='text/css'></head><body><script src='1.js'></script></body></html>"
Answer the question
In order to leave comments, you need to log in
If using *.reg files, then you can use the 16th representation of the text (in UTF-16):
[HKEY_CURRENT_USER\TEST.TMP]
"text"=hex(1):48,00,65,00,6c,00,6c,00,6f,00,2c,00,0d,00,0a,00,77,00,6f,00,72,\
00,6c,00,64,00,21,00,00,00
var WshShell = new ActiveXObject("WScript.Shell");
WshShell.RegWrite("HKEY_CURRENT_USER\\TEST.TMP\\text", "Hello,\r\nworld!");
"Data"=hex:48,65,6c,6c,6f,2c,0d,0a,77,6f,72,6c,64,21
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question