Hi there
I want to find a data in regedit. for example "ApplicationDescription"
it will find in this key:
HKEY_LOCAL_MACHINE\SOFTWARE\KMPlayer
i want to make a directory with name of its key :"KMPlayer"
second question:
i want to search a key in regedit. if it exist do some works and if it not exist do some works else
how to find a key or data in regedit
Moderator: DosItHelp
-
- Posts: 84
- Joined: 08 Sep 2010 10:25
- Location: Iran,Kashan
- Contact:
Re: how to find a key or data in regedit
It's a bit confusing to me.
Try something like that:
Regards
aGerman
Try something like that:
Code: Select all
@echo off
for /f "tokens=3" %%a in ('reg query "HKLM\SOFTWARE\KMPlayer" /v "ApplicationDescription" /s^|findstr /ic:"ApplicationDescription"') do (
set "data=%%a"
)
if defined data (
echo Data of ApplicationDescription is %data%.
) else (
echo Key ApplicationDescription not found.
)
pause
Regards
aGerman