Network route with c#

  • Thread starter Thread starter markus r.
  • Start date Start date
M

markus r.

Hi together,

I am trying to add a new network route to the system with C# (like the dos
command "route add ...."). But I can't find a suitable class in the
framework. Perhaps can somebody help me who has tried some similar
operations with c#.

Kind regards
Markus
 
Hi Markus,

There is nothing in the framework for this, so basically you have two
paths:
1- Use the Process class to invoke the route command with the parameters
needed as you would do from a command prompt.

2- Try to find a API call for this and P/Invoke them.


Cheers,
 
Back
Top