Solved

req query bat

Posted on 2006-10-30
3
498 Views
Last Modified: 2008-02-01
Im looking to see if this reg key    "HKEY_LOCAL_MACHINE\SOFTWARE\Yahoo\pager" exist, not worried about any inside content, and have a box say yes, or no
0
Comment
Question by:underground712
3 Comments
 
LVL 30

Accepted Solution

by:
SteveGTR earned 50 total points
ID: 17838108
Try this:

@echo off

reg QUERY HKLM\SOFTWARE\Yahoo\pager >NUL 2>&1

if ERRORLEVEL 1 echo Not found&goto :EOF

echo Found it

Good Luck,
Steve
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now