118710

BATCH: Leerzeichen im Registry Pfad

Hallo zusammen,

dies ist mein erste Beitrag hier und ich hoffe ich bin richtig :P

So! Erst ein mal der Code:
reg query HKLM\Software\Wow6432Node\Panda Security\AdminIE\Protections
if %ERRORLEVEL% EQU 0 goto True
if %ERRORLEVEL% EQU 1 goto False

Der Code funktioniert nicht, da zwischen Panda und Security ein Leerzeichen ist.
Ich mache sonst nicht viel mit Batch und bin momentan echt ratlos wie ich es anstelle das er den Pfad annimmt.

Jemand einen Tipp ?

Gruß
Geneesys
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 254343

Url: https://administrator.de/forum/batch-leerzeichen-im-registry-pfad-254343.html

Ausgedruckt am: 05.05.2025 um 17:05 Uhr

Xaero1982
Lösung Xaero1982 10.11.2014 aktualisiert um 12:24:09 Uhr
Goto Top
Moin,

benutze " " um den Key.

reg query "HKLM\Software\Wow6432Node\Panda Security\AdminIE\Protections"  

Grüße