How can I add a static, persistent route to my Windows 98 PC?

How can I add a static, persistent route to my Windows 98 PC?

I would like to add a static, persistent route to my Windows 98 machine. The route should get updated to the routing table after every reboot and before I log on to the network. I have tried adding a route command in autoexec.bat, but no luck. How can I accomplish this?

    Requires Free Membership to View

    By submitting your registration information to SearchNetworking.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchNetworking.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The reason you have been unsuccessful thus far is because when the autoexec.bat file is executed during boot up, the network modules are still not loaded. This means that the PC is still not aware of the network card. Instead, you should create a batch file for the same, and copy it in the startup folder of your PC (located inside the Start MenuPrograms folder). Programs in the startup folder are executed after you log on. At this stage, all the network modules will already be loaded when you log on, and hence all should work fine.

This was first published in June 2004