Route delete ip

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
karzer
Posts: 21
Joined: 17 Jul 2010 02:56

Route delete ip

#1 Post by karzer » 08 Nov 2010 07:19

I want to delete with the route delete ip of many
How can we ?

10.0.1.13 255.255.255.255 10.100.100.1
10.0.1.12 255.255.255.255 10.100.100.1
10.0.1.11 255.255.255.255 10.100.100.1
10.0.1.10 255.255.255.255 10.100.100.1

route delete 10.0.1.13 This ok
route delete 10.0.1.* How can we

I'm sorry for my English
Thank You

amel27
Expert
Posts: 177
Joined: 04 Jun 2010 20:05
Location: Russia

Re: Route delete ip

#2 Post by amel27 » 08 Nov 2010 19:21

Code: Select all

for /l %%i in (10,1,13) do echo route delete 10.0.1.%%i

karzer
Posts: 21
Joined: 17 Jul 2010 02:56

Re: Route delete ip

#3 Post by karzer » 09 Nov 2010 02:05

I want to delete the lines from 1 to 255

10.0.1.1
10.0.1.14
10.0.1.255

karzer
Posts: 21
Joined: 17 Jul 2010 02:56

Re: Route delete ip

#4 Post by karzer » 09 Nov 2010 02:14

Thanks

Code: Select all

FOR /L %%G IN (1,1,255) DO route delete 10.0.1.%%G 

Post Reply