Geeks With Blogs
Maryanne's Blog Another Geek with A Blog

I've got a .BAT file in the start menu of all the machines we run our automation scripts on.  This .BAT file will update the registry to "turn off" the screen saver.  We have to do this for two reasons--1) QTP will bomb if a screensaver kicks in and 2) the Net Nazis where I work have disabled the GUI used to set the screensaver settings.

Yes I know its a hack but what choice do I have.

My problem with this .BAT file is this:  On 2 of the 5 machines, it runs completely silently.  No fuss no dialogs, nothing.

On the other 3 I get the "Would you like to make these changes to the Registry" dialogs.

The .BAT code is

REGEDIT /s /i screensaver.reg

 Which I thought would run silently and in 2 cases it does.   All five machines are Win XP Pro.

Is there anyone out there in the Geekdom who can suggest how to make this .BAT silent everywhere?

Much respect if you can.


Posted on Friday, August 17, 2007 9:53 AM Requests for Geekdom Support | Back to top

Comments on this post: Silent .BAT files??

# re: Silent .BAT files??
Requesting Gravatar...
What does the /i switch do? I thought that it was just regedit /s <regfile>?

Left by Carl on Aug 17, 2007 10:49 AM

# re: Silent .BAT files??
Requesting Gravatar...
Have you tried:

reg.exe import screensaver.reg


That might work.

Left by Carl on Aug 17, 2007 11:00 AM

# re: Silent .BAT files??
Requesting Gravatar...
Making Carl's change doesn't suppress the messages from Windows when the .bat is run on Startup.

Interestingly, if you run the .bat after startup there is no messaging. Only when its run in the Startup menu on login.
Left by Maryanne Sweat on Aug 17, 2007 1:20 PM

Your comment:
 (will show your gravatar)

Copyright © Maryanne Sweat | Powered by: