In said:
Hi there,
If I'm on the wrong group - sorry !- pls redirect me, if you
can.
Fine. So long as it is a NTx flavor of Windows.
I would like too know if there is any possibilities of scripting
registry changes, for ex with a batch file, or with another tool
Several. (and be careful said:
And is there an equivalent for regedit in DOS (cmd mode) ?
One may use regedit.exe (NTx) to do a command-line Merge
(silent) operation (with a .REG file). "Merge" may include
deletions. There is no interactive, character-mode interface
though.
regedit.exe [/s | /e | /a] regfile "path-to-key"
/s silent (merge/import)
regedit /s <Drive:>\FolderName\FileName.reg
/e export (UNICODE)
regedit /e "<Drive:>\FolderName\FileName.reg" "KeyPath"
/a ANSI format (export)
regedit /a "<Drive:>\FolderName\FileName.reg" "KeyPath"
Remove KEY:
[-HKEY_CLASSES_ROOT\.zzz]
Remove VALUE:
[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
To delete the ("Default") valuename. Use:
@=-
There is also REG.EXE (MS) which is available in the Resource Kit,
Support Tools or the OS as shipped (depending on your (unstated)
OS). I generally prefer this to Regedit "4" or "5" format files
for scripted changes.
There are a few more obscure tools about, various scripting
languages may offer registry manipulation functions, and some 3rd-
party registry editing tools may have command-line interfaces.