473,586 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Network connections

Okay, I am out of ideas, from a console application, how
do you invoke a dial-up or vpn connection, I can invoke
them from a command prompt doing "start
connectionname. lnk" and run it from a shortcut, but from
within my app or even from a batchfile, it won't work, and
I cannot find anything on the subject. Please help!!

Nov 20 '05 #1
2 1359
Try This
System.Diagnost ics.Process.Sta rt("connectionn ame.lnk")

OHM
the nitewolf wrote:
Okay, I am out of ideas, from a console application, how
do you invoke a dial-up or vpn connection, I can invoke
them from a command prompt doing "start
connectionname. lnk" and run it from a shortcut, but from
within my app or even from a batchfile, it won't work, and
I cannot find anything on the subject. Please help!!


Regards - OHM# OneHandedMan{at }BTInternet{dot }com
Nov 20 '05 #2
or look at shelling out the "rasdial" command.

Syntax is:

rasdial /?
USAGE:
rasdial entryname [username [password|*]] [/DOMAIN:domain]
[/PHONE:phonenumb er] [/CALLBACK:callba cknumber]
[/PHONEBOOK:phone bookfile] [/PREFIXSUFFIX]

rasdial [entryname] /DISCONNECT

Where "entryname" is the name in the Dial up Connections list.

hth.

Simon

"One Handed Man [ OHM# ]" <OneHandedMan{a t}BTInternet{do t}com> wrote in
message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Try This
System.Diagnost ics.Process.Sta rt("connectionn ame.lnk")

OHM
the nitewolf wrote:
Okay, I am out of ideas, from a console application, how
do you invoke a dial-up or vpn connection, I can invoke
them from a command prompt doing "start
connectionname. lnk" and run it from a shortcut, but from
within my app or even from a batchfile, it won't work, and
I cannot find anything on the subject. Please help!!


Regards - OHM# OneHandedMan{at }BTInternet{dot }com

Nov 20 '05 #3

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

Similar topics

0
1670
by: David Sworder | last post by:
Hi there, I am using the SQL managed provider in ADO.NET to fill a dataset with a large number of records. I periodically get an exception with the description "General Network Error" when trying to fill the dataset. The problem occurs rarely. I've searched Google and have seen many posts dealing with this problem. The typical culprits are: ...
6
2386
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's networking capabilities by writing a simple instant messenger program. I only have a few problems: 1. I know squat about Python network...
6
1954
by: Chakkaradeep | last post by:
hi all, I have written a C# Service which is a Server accepting Clients,It is working fine when i connect from localhost but when i connect from any other machine to my machine , the service is not working, the Service is in "Network Service".....i even tried "Local System" and also "Local Service" but the end result is , it is working only...
4
8777
by: Alex | last post by:
Hi All I'm writing scripts in VBS fore years. But now I've to write a tool in Visual Basic .Net which has to connet to a Windows domain. I know how to do this in VBS but I don't find a way in VB.Net. I've no idea how to logon to the domain via Net.Socket. It is not necessary to map a network drive. I can transfer data via UNC names. Can...
3
3445
by: Radi Radichev | last post by:
Hi All! I want to make a program that monitors the active network connections. Can somebody give me a tip or links with tutorials or something where i can see how is that done? Thanks Greetz Radi.
2
1537
by: Vijayakumar | last post by:
Hi all, How can I enumerate network and dial-up connections using vb.net? I need to display the network and dial-up connections in a combo box and to display its details while selecting the same. Vijayakumar
0
1107
by: Vijayakumar | last post by:
Hi all, How can I enumerate network and dial-up connections using vb.net or c#? I need to display the network and dial-up connections in a combo box and to display its details while selecting the same. Vijayakumar
0
1504
by: vol30w60 | last post by:
Hi folks, I am having a problem using PHP to launch an application on the server. All the basics work, but I cannot launch more than 4 instances of the application. This application functions as a server itself, and I specify the port number when I launch it, so my theory is that I am reaching some limit on network connections. This is...
1
20589
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but I don't see the error): "System.IO.IOException: Unable to read data from the transport connection:A blocking operation was interrupted by a call...
0
4268
by: Eran.Yasso | last post by:
Hi all, The following code sets/disables network adpter's status. Since I have no idea where to put this code and I wish to share the community with it. I did rverse engineering from VBS to C#. To use this code, simply add reference to Shell32.dll located in WINDOWS\System32 folder. Comments are wellcome! Enjoy...
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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 we have to send another system

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.