Batch / Scripting Problem - TechRepublic
Question
March 25, 2009 at 09:39 PM
lowryda

Batch / Scripting Problem

by lowryda . Updated 17 years, 2 months ago

Hi I have an issue with a batch file I have created for the purpose of setting the homepage (googlehome.bat) as below:

@echo off
set key=HKCU\Software\Microsoft\Internet Explorer\Main
set value=Start page
set data=%1
reg.exe add “%key%” /v “%value%” /d “%data%” /f
googlehome “http://www.google.com.au”

When run the home page sets to google correctly however the batch seems to remain stuck in a loop with “The Operation completed successfully” continuosly repeating on the screen.
Any advice would be appreciated I am not much of script/batch junkie.

This discussion is locked

All Comments