Skip to content

Quickly add or remove routing tables on Windows.

Notifications You must be signed in to change notification settings

koo19/win-route

Repository files navigation

win-route

A Windows command-line tool for managing IP routes with support for batch operations.

Features

  • Add routes using the system's default gateway
  • Delete specific routes
  • Reset routing table (preserving default routes)
  • Batch operations support for better performance
  • CIDR notation support for route definitions

Usage

win-route add <file1.txt> [file2.txt ...] default   # Add routes from files using default gateway
win-route delete <file1.txt> [file2.txt ...]        # Delete routes from files
win-route reset                                     # Reset routing table

Route File Format

1.0.1.0/24
1.0.2.0/23
1.0.8.0/21
...

Example

Add routing table via default gateway

.\win-route.exe add .\custom.txt .\chnroute.txt default

Remove routing table

.\win-route.exe delete .\custom.txt .\chnroute.txt

Reset by default

.\win-route.exe reset

Compile

g++ main.cpp route_operations.cpp network_utils.cpp file_operations.cpp -o win-route.exe -liphlpapi -lws2_32

About

Quickly add or remove routing tables on Windows.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •