Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailemVyřešeno Win XP: Lze mazat hodnoty z registru pomoci reg souboru?

Zdravim,

predstavuji si to tak, ze do souboru vlozim, ktere udaje z registu chci smazat napr.:

HKEY_USERS\S-1-5-21-1482476501-1958367476-682003330-1003\Software\Microsoft\Windows\CurrentVersion\....atd

a kdyz soubor spustim, smazou se. Je to realne?

Diky!
MaSo

Předmět Autor Datum
Moc ne. Od toho je WSH: Dim WshShell, bKey Set WshShell = WScript.CreateObject("WScript.Shell") bK…
Vladimir 05.12.2006 17:49
Vladimir
nezkouseno, na vlastni nebezpeci:) Removing registry entries To remove an entire "tree" from the r…
sobol 05.12.2006 18:04
sobol
Minus na zacatku jakehokoliv klice spolehlive funguje, jen jaksi nevratne v pripade omylu.
oval 05.12.2006 19:41
oval
Problem vyresen, redakce upozornena. :)) Diky! :beer: poslední
MaSo 05.12.2006 20:33
MaSo

Moc ne.

Od toho je WSH:

Dim WshShell, bKey

Set WshShell = WScript.CreateObject("WScript.Shell")

bKey = WshShell.RegDelete("HKEY_USERS\S-1-5-21-1482476501-1958367476-682003330-1003\Software\Microsoft\Windows\CurrentVersion\....atd")

nezkouseno, na vlastni nebezpeci:)

Removing registry entries

To remove an entire "tree" from the registry using REGEDIT and a .REG file, just add a minus sign before the tree name:
REGEDIT4

[-HKEY_CURRENT_USER\DummyTree]

wi ll remove the entire tree "DummyTree".

To remove an individual item from the registry, place the minus sign after the equal sign:
REGEDIT4

[HKEY_CURRENT_USER\DummyTree]
"Val ueToBeRemoved"=-

regedit.html

Zpět do poradny Odpovědět na původní otázku Nahoru