From owner-freebsd-questions@FreeBSD.ORG Wed Jun 2 21:52:30 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 3B1F616A4CE for ; Wed, 2 Jun 2004 21:52:30 -0700 (PDT) Received: from bramsgmx01.starwoodhotels.com (bramsgmx01.starwoodhotels.com [155.72.128.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8820C43D5C for ; Wed, 2 Jun 2004 21:52:29 -0700 (PDT) (envelope-from guanhui.ho@sheraton.com) Received: from btreesmtp2.starwoodhotels.com (btreesmtp2.starwoodhotels.com [10.20.223.90])ESMTP id i534qSlS013405 for ; Thu, 3 Jun 2004 00:52:28 -0400 Received: by btreesmtp2.starwoodhotels.com with Internet Mail Service (5.5.2657.72) id ; Thu, 3 Jun 2004 00:52:29 -0400 Message-ID: From: "Ho, Guan hui" To: freebsd-questions@freebsd.org Date: Thu, 3 Jun 2004 00:52:26 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: 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 04:52:30 -0000 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. 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. c:\>route add 20.30.0.0 mask 255.0.0.0 155.123.111.9 c:\>route add 195.144.0.0 mask 255.0.0.0 155.123.111.9 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. 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. Which INI file is the right one to use and how do I put the line in it to call the batch file? Thank you. Guan Ho Guan Hui Reception Manager Sheraton Utama Hotel Brunei Darussalam Email: guanhui.ho@sheraton.com Tel : 673 2244272 Fax : 673 2234178 This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field.