Batch file and prompt

I'm trying to write a batch file that automatically says "yes" to the yes/no prompt that pops up, and hits "ok" for a following prompt.

This is what I have, but it does not work:
@echo off
echo y>script.txt
echo.>>script.txt .TXT
type script.txt|start /d"F:\batch" ScreenSaverOff.reg

Here's the contents of the reg file, if it helps:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"ScreenSaveActive"="0"
What this batch file does is apply a registry edit (which disables the screensaver). The registry edit is called, but just sits there when it comes to the "do you want to apply this?" prompt.

Is there a way to get the prompts answered automatically? They registry edit itself works, since I can apply it manually.

I greatly appreciate any help.
[876 byte] By [Force Flow] at [2007-11-19 1:16:40]
# 1 Re: Batch file and prompt
What luck...I stumbled across the answer while I continued to google.

regedit /s F:\batch\Scree~1.reg

Thanks guys :)
Force Flow at 2007-11-10 3:39:39 >