Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need a regedit script commandto stop/clear a popup message 1

Status
Not open for further replies.

gcole

Programmer
Aug 2, 2000
390
0
0
US
I have the following code that I use to edit the registry before running an app:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\............\History]
"Count"="4"
"1"="555.555.555.5"
"2"="555.555.555.6"
"3"="555.555.555.7"
"4"="555.555.555.8"
"Last"="555.555.555.5"

This code works great but it leaves a popup message on the screen that stops my scheduler. Does anyone have code to clear this box?
 
What are you using to import this to the registry? If you're using a batch file with a command line like this:

regedit C:\regfile.reg

...then are these the messages you're getting?

"Are you sure you want to add the information in C:\regfile.reg to the registry?"

"Information in C:\regfile.reg has been successfully entered into the registry."

If these are what you're getting, you can use the following to do it in "silent" mode.

regedit /s C:\regfile.reg

This will make it run without asking for confirmation, and without confirming that the changes were made.

Hope this helps,
Jason H.
 
Perfect. I knew it could be done.
Thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top