Problem with ROUTE command in batch file - TechRepublic
General discussion
April 23, 2002 at 09:23 PM
k&h

Problem with ROUTE command in batch file

by k&h . Updated 24 years, 2 months ago

I need to create a batch file to put into startup that runs the ROUTE ADD command. Problem is the batch file I have made keeps running continuously over and over again without stopping. Its for windows 98 and this is what I have tried.

ROUTE ADD 0.0.0.0 MASK 0.0.0.0 192.168.1.100
EXIT

It works so far as it sets the gateway as I want but it keeps going until I do Ctrl C to stop it.
I thought the EXIT command would work, but obviously not.
What am I doing wrong ???

This discussion is locked

All Comments