Solved

req query bat

Posted on 2006-10-30
3
524 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CMD command to remove subdirectories and files from a certain folder 7 52
CMD shell elevation.js 4 72
Copy dir and files with robocopy 2 73
how to count files? 4 59
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

696 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