Win2k route print log file?

Posted on 2005-04-18
Medium Priority
Last Modified: 2013-12-23
I got a bunch of routes I added through route print on my Windows 2000 server box.  I believe it saves everything to a log file.  Where is this log file so I can use it?
Question by:Pentrix2
LVL 97

Expert Comment

by:Lee W, MVP
ID: 13808141
What makes you think there's a log file?

If you want to create a file with all your routes, type:


Then look for the file ROUTES.TXT in C:\

Author Comment

ID: 13808229
I think I was unclear on my goal.

I got a bunch of routes on a server.  How do I export then import these routes to a new server?  I am trying not to type in like 85 routes I got.
LVL 85

Accepted Solution

oBdA earned 2000 total points
ID: 13826305
On the machine on which you defined the routes, run
route print >routes.txt
Then open the routes.txt file in notepad, and remove the entries at the beginning, so that only the persistent routes are left.
Copy the routes.txt file to the target machine.
On the target machine, run this little script (and change the RouteFile to the proper location); it should read the routes.txt file and add the routes found there.

@echo off
set RouteFile=C:\Temp\routes.txt
for /f "tokens=1-3" %%a in ('type "%RouteFile%"') do (
  echo Adding %%a ...
  route /p add %%a mask %%b %%c

In principle, you can start it directly from the command line as well (assuming you're in the directory with the routes file):
for /f "tokens=1-3" %a in (routes.txt) do @route /p add %a mask %b %c

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question