Avatar of Jeffrey Renfroe
Jeffrey Renfroe
Flag for United States of America asked on

Hide error message when running batch file

Hello. I am cleaning up startup items in the registry using a batch file. Some machines do not have the items present in the registry and display an error message. The batch file is being used for other tasks so I cannot hide it completely. Is it possible to hide the error message if the key is not present?

Below is one of the lines for the file.

Thank you
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v DVDLauncher /F

Open in new window

Windows Batch

Avatar of undefined
Last Comment
Jeffrey Renfroe

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jeffrey Renfroe

ASKER
Thank you. This is great.
Jeffrey Renfroe

ASKER
Thank you again.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck