Problem using wildcards with route delete

April 26, 2013 at 17:15:56
Specs: Windows XP
I am trying to delete a route using route.exe under Windows XP. I need to use a wildcard for the gateway because the exact IP address varies. Here is the excerpt from the routing table showing the line I am trying to delete:

Network Destination        Netmask          Gateway     Interface    Metric       1

I am trying to use this command:
route delete 192.168.200.*

It pauses for a few seconds and gives me "route: bad gateway address 192.168.200.*"

According to the documentation from route /?, this should work:

If the command is print or delete, the Gateway parameter can be omitted and wildcards can be used for the destination and gateway. The Destination value can be a wildcard value specified by an asterisk (*). If the destination specified contains an asterisk (*) or a question mark (?), it is treated as a wildcard and only matching destination routes are printed or deleted. The asterisk matches any string, and the question mark matches any single character. For example, 10.*.1, 192.168.*, 127.*, and *224* are all valid uses of the asterisk wildcard.

I have tried many variations of where to put the *, using ? instead, etc. but I always get the same error. What am I doing wrong? Any ideas?

See More: Problem using wildcards with route delete

Report •

April 26, 2013 at 20:18:15
Have you tried just not specifying the gateway?

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question