From owner-freebsd-questions@FreeBSD.ORG Wed Jun 2 22:09:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6A5716A4CE for ; Wed, 2 Jun 2004 22:09:24 -0700 (PDT) Received: from usw2.natel.net (2b.bz [209.152.117.190]) by mx1.FreeBSD.org (Postfix) with SMTP id E55C143D49 for ; Wed, 2 Jun 2004 22:09:23 -0700 (PDT) (envelope-from WD@US-Webmasters.com) Received: (qmail 43110 invoked from network); 3 Jun 2004 05:09:20 -0000 Received: from batv-01-014.dialup.netins.net (HELO xyz.US-Webmasters.com) (216.248.109.15) by us-webmasters.com with SMTP; 3 Jun 2004 05:09:20 -0000 Message-Id: <5.1.0.14.2.20040603000157.076abec0@209.152.117.178> X-Sender: wd@209.152.117.178 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 03 Jun 2004 00:08:34 -0500 To: freebsd-questions@freebsd.org From: "W. D." In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable cc: "Ho, Guan hui" Subject: Re: Need Help on Win98 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 05:09:24 -0000 At 23:52 6/2/2004, Ho, Guan hui, wrote: >I need help on how to make the routing persistent in Win98. I have my PC >connected to a network that has two separate routers connected to the same >network. One of the routers is for surfing the internet and the other is >for connectivity to the VPN email system. >=20 >I used to change the gateway and restart the PC depending on what I need to >access. Not a practical solution. I now can do so by going to the MSDOS >prompt and type in the routing command. Please find example below.=20 >=20 >c:\>route add 20.30.0.0 mask 255.0.0.0 155.123.111.9 >=20 >c:\>route add 195.144.0.0 mask 255.0.0.0 155.123.111.9 >=20 >=20 >This works perfectly but only problem is that I have to keep typing it= every >time I start the PC. Microsoft does not support the -p command on the= above >in 95/98 system. For my XP machine, I just need to add the -p after "add" >in both these lines and it will stay permanently even if you restart the >system. >=20 >I now create a shortcut on the desktop to point to a batch file I created. >The batch has the route instruction in it. All I have to do now is to= click >the icon on the desktop when I restart my PC. Not a bad solution but would >be better if this can be put into a startup file of Windows. =20 >=20 >Which INI file is the right one to use and how do I put the line in it to >call the batch file? Ummmmmmm, this is a FreeBSD list! Next time, subscribe to: WIN-HOME@PEACH.EASE.LSOFT.COM or some similar list. If you put 'autoexec.bat' in the root directory, the commands contained within it will execute before going into Windows. If Windows needs to be running, take a copy of your shortcut to the batch file and put it in: C:\Windows\Start Menu\Programs\StartUp\ You will know you are in the right directory because there should be some other programs that run on boot up. (P. S.: Say hello to the Sultan for me!) Start Here to Find It Fast!=99 ->= http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/