running a batchfile with run once registry key

hello there

I am trying run a batch file which is added to run registry. the batch file call a registry file saved on the system
command I used is
regedit.exe /s c:\windows\custom.reg

After user logs in it runs good, but it will pop up "Adding information can unintentionally change or delete values and cause components to stop working" Are you sure you want  to continue.

How can I suppress this message.

Regards'
shyam pothiniAsked:
Who is Participating?
 
McKnifeConnect With a Mentor Commented:
Use
reg.exe import regfile.reg
instead.
0
 
McKnifeCommented:
Author abandoned. Known and proven solution was provided.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.