Win2k route print log file?

Posted on 2005-04-18
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 95

    Expert Comment

    by:Lee W, MVP
    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:\
    LVL 9

    Author Comment

    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 82

    Accepted Solution

    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

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
    Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
    This video discusses moving either the default database or any database to a new volume.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now