473,503 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Network route with c#

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
Nov 15 '05 #1
1 5613
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"markus r." <ro*@spock.5sl.org> wrote in message
news:bv************@ID-19462.news.uni-berlin.de...
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

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2838
by: Edvard Majakari | last post by:
Suppose one wants to fetch the following data from given network interface, say, eth0: >>> Ethinf('eth0').addr() '192.168.1.42/24' >>> Ethinf('eth0').route('default') '192.168.1.1' >>>...
0
1402
by: HIL | last post by:
Hi everybody, I wrote a python script to setup my network interface under Linux. To perform it, I use directly from my python script external programs as 'ifconfig' and 'route' ans I fill the...
3
9747
by: ssg31415926 | last post by:
I administer a Server 2003/XP network. A developer has come to me with a proposal to put in a web service-based application. The workstations will be XP and the servers 2003 but he can't use...
0
1204
by: ngr | last post by:
I want to be able to retrieve an ip address: At the moment I have to do the following OBTAIN A DOS WINDOW ROUTE PRINT From this I obtain the IP Address from the dos window thus.... Network...
2
7963
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a...
1
998
by: abhanjee | last post by:
Hello, I am facing some challenges in creating a folder in the file server on the same network. The application will create a folder on the network share when the user clicks a button. This...
6
2945
by: tendim | last post by:
G'day group. Currently our organization us using VB6 based applications, and I am trying to push forward and migrate some of the smaller things to VB.NET, eventually migrating all applications...
0
1666
by: WastedsXeYouth | last post by:
Hi, i am currently revising for an exam on networks, this scenerio is one which keeps arising and im unsure as to what the layout would be and what exactly happens in part 2.... Q) The computer...
3
3417
by: Alex | last post by:
Hi, I'm having a booger of a time trying to understand the policies for VB 2005 so I can run the EXE file from a network share via mapped drive. My first route was to use the Global Assembly...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.